]> granicus.if.org Git - clang/commitdiff
Make this SourceLocation getter const LLVM_READONLY like others in the same file.
authorNick Lewycky <nicholas@mxc.ca>
Mon, 16 May 2016 02:46:07 +0000 (02:46 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 16 May 2016 02:46:07 +0000 (02:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269625 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/StmtObjC.h

index 68fe3ef697bc68c8effb3f5e45c68ad929dea2ed..5260b6985bf58aa014733421c3cb8efaa07de0a8 100644 (file)
@@ -326,7 +326,7 @@ public:
   Expr *getThrowExpr() { return reinterpret_cast<Expr*>(Throw); }
   void setThrowExpr(Stmt *S) { Throw = S; }
 
-  SourceLocation getThrowLoc() { return AtThrowLoc; }
+  SourceLocation getThrowLoc() const LLVM_READONLY { return AtThrowLoc; }
   void setThrowLoc(SourceLocation Loc) { AtThrowLoc = Loc; }
 
   SourceLocation getLocStart() const LLVM_READONLY { return AtThrowLoc; }