diff options
author | Richard Trieu <rtrieu@google.com> | 2014-03-06 02:25:04 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2014-03-06 02:25:04 +0000 |
commit | fe771c071aaa378b5813ae827f462e105c0b637c (patch) | |
tree | a5dd9c27776472c914e17ef1f92c3aa8622c312c /clang/lib/Sema/SemaChecking.cpp | |
parent | bc46f3c15dfa37f0c336d1ad3f01180d4c33ac99 (diff) | |
download | bcm5719-llvm-fe771c071aaa378b5813ae827f462e105c0b637c.tar.gz bcm5719-llvm-fe771c071aaa378b5813ae827f462e105c0b637c.zip |
Suppress diagnostics during name lookup for absolute value type.
llvm-svn: 203061
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 7bf1071d671..dd7cb5855f2 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -3817,6 +3817,7 @@ static void emitReplacement(Sema &S, SourceLocation Loc, SourceRange Range, // Look up absolute value function in TU scope. DeclarationName DN(&S.Context.Idents.get(AbsName)); LookupResult R(S, DN, Loc, Sema::LookupAnyName); + R.suppressDiagnostics(); S.LookupName(R, S.TUScope); // Skip notes if multiple results found in lookup. |