mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Add support for new style casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -152,7 +152,7 @@ bool ADCE::doADCE() {
|
||||
// they are known to be alive as well...
|
||||
//
|
||||
for (unsigned op = 0, End = I->getNumOperands(); op != End; ++op) {
|
||||
if (Instruction *Operand = I->getOperand(op)->castInstruction())
|
||||
if (Instruction *Operand = dyn_cast<Instruction>(I->getOperand(op)))
|
||||
markInstructionLive(Operand);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user