mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Fix a small bug noticed on code review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f910a3ff0f
commit
1d2bf885dd
@ -310,7 +310,7 @@ struct cast_match {
|
||||
return Op.match(I->getOperand(0));
|
||||
} else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
|
||||
if (CE->getOpcode() == Instruction::Cast) {
|
||||
if (DestTy) *DestTy = I->getType();
|
||||
if (DestTy) *DestTy = CE->getType();
|
||||
return Op.match(CE->getOperand(0));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user