diff options
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp b/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp index 4ed69ecc465..434c1200759 100644 --- a/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp +++ b/gnu/llvm/tools/clang/lib/Lex/MacroInfo.cpp @@ -200,7 +200,8 @@ MacroDirective::DefInfo MacroDirective::getDefinition() { } const MacroDirective::DefInfo -MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const { +MacroDirective::findDirectiveAtLoc(SourceLocation L, + const SourceManager &SM) const { assert(L.isValid() && "SourceLocation is invalid."); for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) { if (Def.getLocation().isInvalid() || // For macros defined on the command line. |
