aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-11-10 09:32:10 +0000
committerDuncan Sands <baldrick@free.fr>2009-11-10 09:32:10 +0000
commite9097f7438cceb80871cda5f2cecb51e6639b3cc (patch)
tree78d162771be7a04edaac188cbece5f0d0a6768e5 /lib/Transforms/Scalar/InstructionCombining.cpp
parentf07c9497b2ad030457c9314db5bfb8b0b204a0da (diff)
Add brackets to make gcc-4.4 happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 73a1fe2897..e65eaf38ad 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -8262,9 +8262,9 @@ Instruction *InstCombiner::commonIntCastTransforms(CastInst &CI) {
// expression tree to something weird like i93 unless the source is also
// strange.
if (!isa<IntegerType>(SrcI->getType()) ||
- ShouldChangeType(SrcI->getType(), DestTy, TD) &&
- CanEvaluateInDifferentType(SrcI, DestTy,
- CI.getOpcode(), NumCastsRemoved)) {
+ (ShouldChangeType(SrcI->getType(), DestTy, TD) &&
+ CanEvaluateInDifferentType(SrcI, DestTy,
+ CI.getOpcode(), NumCastsRemoved))) {
// If this cast is a truncate, evaluting in a different type always
// eliminates the cast, so it is always a win. If this is a zero-extension,
// we need to do an AND to maintain the clear top-part of the computation,