From: Chad Rosier Date: Mon, 22 Apr 2013 22:05:00 +0000 (+0000) Subject: [ms-inline asm] Set the OpDecl to the InlineAsmIdentifierInfo struct. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=734479a1638ee2573f74bfd8e1f82731e8efa683;p=clang [ms-inline asm] Set the OpDecl to the InlineAsmIdentifierInfo struct. Part of rdar://13663589 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180055 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp index c646e7c857..14ee67bfc3 100644 --- a/lib/Sema/SemaStmtAsm.cpp +++ b/lib/Sema/SemaStmtAsm.cpp @@ -449,6 +449,7 @@ public: InlineAsmIdentifierInfo &Info) { SourceLocation Loc = SourceLocation::getFromPtrEncoding(LineBuf.data()); NamedDecl *OpDecl = SemaRef.LookupInlineAsmIdentifier(LineBuf, Loc, Info); + Info.OpDecl = static_cast(OpDecl); return static_cast(OpDecl); }