[ms-inline asm] Get the OpDecl and remove a redundant lookup.

Part of rdar://13663589

llvm-svn: 180057
This commit is contained in:
Chad Rosier 2013-04-22 22:12:12 +00:00
parent 92895762d6
commit a83a69c04e

View File

@ -4119,8 +4119,7 @@ AsmParser::parseMSInlineAsm(void *AsmLoc, std::string &AsmString,
if (SymName.empty())
continue;
MCAsmParserSemaCallback::InlineAsmIdentifierInfo Info;
void *OpDecl = SI.LookupInlineAsmIdentifier(SymName, Info);
void *OpDecl = Operand->getOpDecl();
if (!OpDecl)
continue;