diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-30 17:35:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-30 17:35:08 +0000 |
commit | d0a6a7a0307f124d47df9c649946bcb0767c5631 (patch) | |
tree | 483c0c1774dd7cd26bd048bd5a77f9d581edf53b | |
parent | 6e8fbad67554e0a605af59d072b4129a8706681e (diff) |
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
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index d6a8a85800..af3bf6a887 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -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); |