aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index 145d590046..67fb4ac6b7 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -214,7 +214,7 @@ public:
explicit FullContextSourceLocation(SourceLocation loc, SourceManager& smgr)
: Loc(loc), SrcMgr(&smgr) {}
- bool isValid() { return Loc.isValid(); }
+ bool isValid() const { return Loc.isValid(); }
SourceLocation getSourceLocation() const { return Loc; }
operator SourceLocation() const { return Loc; }