summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-04-22 22:05:00 +0000
committerChad Rosier <mcrosier@apple.com>2013-04-22 22:05:00 +0000
commit734479a1638ee2573f74bfd8e1f82731e8efa683 (patch)
tree5dd7837072e684d7303eb2df1bc723072f1d0348 /lib/Sema/SemaStmtAsm.cpp
parentf2edbec1d9817df109304f9c19ae2b34fec1feea (diff)
[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
Diffstat (limited to 'lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--lib/Sema/SemaStmtAsm.cpp1
1 files changed, 1 insertions, 0 deletions
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<void *>(OpDecl);
return static_cast<void *>(OpDecl);
}