diff options
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. |