[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp
Zhou Sheng
zhousheng00 at gmail.com
Thu Jan 11 04:25:06 PST 2007
Changes in directory llvm/lib/Bytecode/Writer:
Writer.cpp updated: 1.142 -> 1.143
---
Log message:
For PR1043: http://llvm.org/PR1043 :
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
---
Diffs of the changes: (+1 -1)
Writer.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.142 llvm/lib/Bytecode/Writer/Writer.cpp:1.143
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.142 Sat Jan 6 01:24:43 2007
+++ llvm/lib/Bytecode/Writer/Writer.cpp Thu Jan 11 06:24:14 2007
@@ -322,7 +322,7 @@
switch (CPV->getType()->getTypeID()) {
case Type::BoolTyID: // Boolean Types
- if (cast<ConstantBool>(CPV)->getValue())
+ if (cast<ConstantInt>(CPV)->getBoolValue())
output_vbr(1U);
else
output_vbr(0U);
More information about the llvm-commits
mailing list