1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

make it clear that this is always a zext

llvm-svn: 32044
This commit is contained in:
Chris Lattner 2006-11-30 17:35:08 +00:00
parent affa9441cd
commit f3806f1c16

View File

@ -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);