[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Reid Spencer
reid at x10sys.com
Thu Jan 11 20:25:30 PST 2007
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.218 -> 1.219
---
Log message:
Implement review feedback for the ConstantBool->ConstantInt merge. Chris
recommended that getBoolValue be replaced with getZExtValue and that
get(bool) be replaced by get(const Type*, uint64_t). This implements
those changes.
---
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.218 llvm/lib/Bytecode/Reader/Reader.cpp:1.219
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.218 Thu Jan 11 12:21:28 2007
+++ llvm/lib/Bytecode/Reader/Reader.cpp Thu Jan 11 22:24:45 2007
@@ -1403,7 +1403,7 @@
unsigned Val = read_vbr_uint();
if (Val != 0 && Val != 1)
error("Invalid boolean value read.");
- Result = ConstantInt::get(Val == 1);
+ Result = ConstantInt::get(Type::Int1Ty, Val == 1);
if (Handler) Handler->handleConstantValue(Result);
break;
}
More information about the llvm-commits
mailing list