[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp

Zhou Sheng zhousheng00 at gmail.com
Thu Jan 11 04:25:01 PST 2007



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.216 -> 1.217
---
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)

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


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.216 llvm/lib/Bytecode/Reader/Reader.cpp:1.217
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.216	Sat Jan  6 01:24:43 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Thu Jan 11 06:24:13 2007
@@ -1403,7 +1403,7 @@
     unsigned Val = read_vbr_uint();
     if (Val != 0 && Val != 1)
       error("Invalid boolean value read.");
-    Result = ConstantBool::get(Val == 1);
+    Result = ConstantInt::get(Val == 1);
     if (Handler) Handler->handleConstantValue(Result);
     break;
   }






More information about the llvm-commits mailing list