[llvm-commits] [dragonegg] r121124 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Tue Dec 7 01:14:21 PST 2010
Author: baldrick
Date: Tue Dec 7 03:14:20 2010
New Revision: 121124
URL: http://llvm.org/viewvc/llvm-project?rev=121124&view=rev
Log:
Fix bug introduced by the previous commit.
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=121124&r1=121123&r2=121124&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Tue Dec 7 03:14:20 2010
@@ -8479,7 +8479,7 @@
Val = Val.lshr(8);
} else {
// Big endian lays out high bits first.
- APInt Tmp = Val.lshr(Tmp.getBitWidth()-8).trunc(8);
+ APInt Tmp = Val.lshr(Val.getBitWidth()-8).trunc(8);
ValToAppend = ConstantInt::get(Context, Tmp);
}
} else if (Val.getBitWidth() == 8) {
More information about the llvm-commits
mailing list