fix SimplifyLibCalls/IsDigit.ll
authorChris Lattner <sabre@nondot.org>
Sun, 15 Apr 2007 05:38:40 +0000 (05:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Apr 2007 05:38:40 +0000 (05:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36047 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SimplifyLibCalls.cpp

index b7b5bee1eb2ab7764bee7bd97ab82029b687aaad..5900a0254fcb98d17e7af258345cccfe181aac0d 100644 (file)
@@ -1571,7 +1571,7 @@ public:
                               ConstantInt::get(V->getType(), 128), 
                               V->getName()+".isascii", CI);
     if (Cmp->getType() != CI->getType())
-      Cmp = new BitCastInst(Cmp, CI->getType(), Cmp->getName(), CI);
+      Cmp = new ZExtInst(Cmp, CI->getType(), Cmp->getName(), CI);
     return ReplaceCallWith(CI, Cmp);
   }
 } isasciiOptimizer;