summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-05-24 18:32:55 +0000
committerChad Rosier <mcrosier@apple.com>2013-05-24 18:32:55 +0000
commitb9aff1edb38c43c57650dd7236dd10a659aa970f (patch)
treebb5b453b070f3d813b8c7e3fed32e7738cd14ca6 /clang/lib/Sema/SemaStmtAsm.cpp
parentf2e021233c044fbc183fc67d8f14bdb4d9dad672 (diff)
downloadbcm5719-llvm-b9aff1edb38c43c57650dd7236dd10a659aa970f.tar.gz
bcm5719-llvm-b9aff1edb38c43c57650dd7236dd10a659aa970f.zip
[ms-inline asm] Don't diagnose an empty lookup for inline assmebly. This happen
for labels in inline assembly that aren't in the lookup tables. E.g., __asm { a: jmp a } rdar://13983623 llvm-svn: 182659
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index 1b874762194..9169032178f 100644
--- a/clang/lib/Sema/SemaStmtAsm.cpp
+++ b/clang/lib/Sema/SemaStmtAsm.cpp
@@ -381,7 +381,9 @@ ExprResult Sema::LookupInlineAsmIdentifier(CXXScopeSpec &SS,
ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id,
/*trailing lparen*/ false,
- /*is & operand*/ false);
+ /*is & operand*/ false,
+ /*CorrectionCandidateCallback=*/0,
+ /*IsInlineAsmIdentifier=*/ true);
if (IsUnevaluatedContext)
PopExpressionEvaluationContext();
OpenPOWER on IntegriCloud