From eee1dcb97f754113cb828585094e2b13f7362c40 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 16 May 2016 02:46:07 +0000 Subject: [PATCH] Make this SourceLocation getter const LLVM_READONLY like others in the same file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269625 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/StmtObjC.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/AST/StmtObjC.h b/include/clang/AST/StmtObjC.h index 68fe3ef697..5260b6985b 100644 --- a/include/clang/AST/StmtObjC.h +++ b/include/clang/AST/StmtObjC.h @@ -326,7 +326,7 @@ public: Expr *getThrowExpr() { return reinterpret_cast(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; } -- 2.40.0