[llvm-commits] [llvm] r66751 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Dale Johannesen
dalej at apple.com
Wed Mar 11 18:20:06 PDT 2009
Author: johannes
Date: Wed Mar 11 20:20:06 2009
New Revision: 66751
URL: http://llvm.org/viewvc/llvm-project?rev=66751&view=rev
Log:
Allow for switch values bigger than 64 bits.
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=66751&r1=66750&r2=66751&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Wed Mar 11 20:20:06 2009
@@ -725,7 +725,7 @@
class Sorter {
public:
bool operator() (ConstantInt * const &p, ConstantInt * const &q) const {
- return p->getSExtValue() < q->getSExtValue();
+ return p->getValue().slt(q->getValue());
}
};
More information about the llvm-commits
mailing list