]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Set the OpDecl to the InlineAsmIdentifierInfo struct.
authorChad Rosier <mcrosier@apple.com>
Mon, 22 Apr 2013 22:05:00 +0000 (22:05 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 22 Apr 2013 22:05:00 +0000 (22:05 +0000)
Part of rdar://13663589

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180055 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAsm.cpp

index c646e7c857150bfd86ec7652f5fc524b22415757..14ee67bfc32244f3fed29d5f68144ba4e758c684 100644 (file)
@@ -449,6 +449,7 @@ public:
                                   InlineAsmIdentifierInfo &Info) {
     SourceLocation Loc = SourceLocation::getFromPtrEncoding(LineBuf.data());
     NamedDecl *OpDecl = SemaRef.LookupInlineAsmIdentifier(LineBuf, Loc, Info);
+    Info.OpDecl = static_cast<void *>(OpDecl);
     return static_cast<void *>(OpDecl);
   }