mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
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
This commit is contained in:
parent
f07c9497b2
commit
e9097f7438
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user