[ms-inline asm] Get the OpDecl and remove a redundant lookup.
Part of rdar://13663589
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180057 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index d23a0ab..a903771 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -4119,8 +4119,7 @@
if (SymName.empty())
continue;
- MCAsmParserSemaCallback::InlineAsmIdentifierInfo Info;
- void *OpDecl = SI.LookupInlineAsmIdentifier(SymName, Info);
+ void *OpDecl = Operand->getOpDecl();
if (!OpDecl)
continue;