mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
make it clear that this is always a zext
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e8fbad675
commit
d0a6a7a030
@ -1177,7 +1177,7 @@ static void ShrinkGlobalToBoolean(GlobalVariable *GV, Constant *OtherVal) {
|
||||
LoadInst *NLI = new LoadInst(NewGV, Name+".b", LI);
|
||||
Value *NSI;
|
||||
if (IsOneZero)
|
||||
NSI = CastInst::createInferredCast(NLI, LI->getType(), Name, LI);
|
||||
NSI = new ZExtInst(NLI, LI->getType(), Name, LI);
|
||||
else
|
||||
NSI = new SelectInst(NLI, OtherVal, InitVal, Name, LI);
|
||||
LI->replaceAllUsesWith(NSI);
|
||||
|
Loading…
Reference in New Issue
Block a user