[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Mon Jan 22 08:41:25 PST 2007



Changes in directory llvm-poolalloc/lib/PoolAllocate:

PoolAllocate.cpp updated: 1.132 -> 1.133
---
Log message:

fix build

---
Diffs of the changes:  (+1 -1)

 PoolAllocate.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.132 llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.133
--- llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp:1.132	Wed Jan 10 14:44:31 2007
+++ llvm-poolalloc/lib/PoolAllocate/PoolAllocate.cpp	Mon Jan 22 10:41:10 2007
@@ -251,7 +251,7 @@
       if (isa<Constant>(User->getOperand(1)) && 
           cast<Constant>(User->getOperand(1))->isNullValue()) {
         bool CondIsTrue = ICI->getPredicate() == ICmpInst::ICMP_NE;
-        User->replaceAllUsesWith(ConstantBool::get(CondIsTrue));
+        User->replaceAllUsesWith(ConstantInt::get(Type::Int1Ty, CondIsTrue));
       }
     } else if ((User->getOpcode() == Instruction::Trunc) ||
                (User->getOpcode() == Instruction::ZExt) ||






More information about the llvm-commits mailing list