[llvm-commits] CVS: llvm/lib/Transforms/Utils/CodeExtractor.cpp
Chris Lattner
sabre at nondot.org
Thu Sep 28 15:58:39 PDT 2006
Changes in directory llvm/lib/Transforms/Utils:
CodeExtractor.cpp updated: 1.39 -> 1.40
---
Log message:
simplify code
---
Diffs of the changes: (+1 -1)
CodeExtractor.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff -u llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.39 llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.40
--- llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.39 Sun Jan 22 16:53:01 2006
+++ llvm/lib/Transforms/Utils/CodeExtractor.cpp Thu Sep 28 17:58:25 2006
@@ -470,7 +470,7 @@
case 0:
case 1: break; // No value needed.
case 2: // Conditional branch, return a bool
- brVal = SuccNum ? ConstantBool::False : ConstantBool::True;
+ brVal = ConstantBool::get(!SuccNum);
break;
default:
brVal = ConstantUInt::get(Type::UShortTy, SuccNum);
More information about the llvm-commits
mailing list