[llvm-commits] [llvm-gcc-4.2] r69400 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Chris Lattner
sabre at nondot.org
Fri Apr 17 16:15:10 PDT 2009
Author: lattner
Date: Fri Apr 17 18:15:10 2009
New Revision: 69400
URL: http://llvm.org/viewvc/llvm-project?rev=69400&view=rev
Log:
Fix 2009-04-16-BitfieldInitialization.c:t9, a crash building llvm-gcc.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=69400&r1=69399&r2=69400&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Apr 17 18:15:10 2009
@@ -7033,7 +7033,7 @@
Tmp.trunc(8);
ValToAppend = ConstantInt::get(Tmp);
}
- } else if (ValC->getBitWidth() == 8) {
+ } else if (Val.getBitWidth() == 8) {
ValToAppend = ConstantInt::get(Val);
} else {
APInt Tmp = Val;
More information about the llvm-commits
mailing list