[MCTargetAsmParser] Move the member varialbes that reference
[oota-llvm.git] / utils / TableGen / AsmMatcherEmitter.cpp
index 5af7051e03fd18d14c43f005d77806183db5a7dd..f1b9ab393873a23a53c87b7beba43c45a55d8448 100644 (file)
@@ -3052,7 +3052,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
 
   if (HasDeprecation) {
     OS << "    std::string Info;\n";
-    OS << "    if (MII.get(Inst.getOpcode()).getDeprecatedInfo(Inst, STI, Info)) {\n";
+    OS << "    if (MII.get(Inst.getOpcode()).getDeprecatedInfo(Inst, getSTI(), Info)) {\n";
     OS << "      SMLoc Loc = ((" << Target.getName()
        << "Operand&)*Operands[0]).getStartLoc();\n";
     OS << "      getParser().Warning(Loc, Info, None);\n";