mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 01:43:57 +00:00
make it clear that this is always a zext
llvm-svn: 32044
This commit is contained in:
parent
affa9441cd
commit
f3806f1c16
@ -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…
x
Reference in New Issue
Block a user