summaryrefslogtreecommitdiffstats
path: root/clang/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
commit7359d4793e9d808d331fa78ba5e7cc3bc5d4103c (patch)
tree45976a8b16a4f4372f92ada2771e9e951bdab832 /clang/lib/Sema/SemaStmtAsm.cpp
parent732b837a41114424aa157e373aa3b5b676bf08d3 (diff)
downloadbcm5719-llvm-7359d4793e9d808d331fa78ba5e7cc3bc5d4103c.tar.gz
bcm5719-llvm-7359d4793e9d808d331fa78ba5e7cc3bc5d4103c.zip
[ms-inline asm] Set the OpDecl to the InlineAsmIdentifierInfo struct.
Part of rdar://13663589 llvm-svn: 180055
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index c646e7c8571..14ee67bfc32 100644
--- a/clang/lib/Sema/SemaStmtAsm.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud