[llvm-commits] [llvm] r49999 - /llvm/trunk/lib/VMCore/ConstantFold.cpp
Chris Lattner
sabre at nondot.org
Sun Apr 20 12:59:12 PDT 2008
Author: lattner
Date: Sun Apr 20 14:59:12 2008
New Revision: 49999
URL: http://llvm.org/viewvc/llvm-project?rev=49999&view=rev
Log:
hopefully resolve PR2240
Modified:
llvm/trunk/lib/VMCore/ConstantFold.cpp
Modified: llvm/trunk/lib/VMCore/ConstantFold.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ConstantFold.cpp?rev=49999&r1=49998&r2=49999&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ConstantFold.cpp (original)
+++ llvm/trunk/lib/VMCore/ConstantFold.cpp Sun Apr 20 14:59:12 2008
@@ -571,7 +571,7 @@
if (GVAlign > 1) {
unsigned DstWidth = CI2->getType()->getBitWidth();
- unsigned SrcWidth = std::min(SrcWidth, Log2_32(GVAlign));
+ unsigned SrcWidth = std::min(DstWidth, Log2_32(GVAlign));
APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth));
// If checking bits we know are clear, return zero.
More information about the llvm-commits
mailing list