Suppress diagnostics during name lookup for absolute value type.
llvm-svn: 203061
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user