diff --git a/llvm/lib/CodeGen/VirtRegRewriter.cpp b/llvm/lib/CodeGen/VirtRegRewriter.cpp index 6370d8fa5cba..11bd3cde707f 100644 --- a/llvm/lib/CodeGen/VirtRegRewriter.cpp +++ b/llvm/lib/CodeGen/VirtRegRewriter.cpp @@ -2036,13 +2036,10 @@ LocalRewriter::RewriteMBB(LiveIntervals *LIs, // If this is an asm, and PhysReg is used elsewhere as an earlyclobber // operand, we can't also use it as an input. (Outputs always come // before inputs, so we can stop looking at i.) - if (MI.getOpcode()==TargetOpcode::INLINEASM) { + if (MI.isInlineAsm()) { for (unsigned k=0; k