aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-11-30 20:10:58 +0000
committerMike Stump <mrs@apple.com>2009-11-30 20:10:58 +0000
commit6515afe50c8d69dbb029b85f879cb2e083854b6c (patch)
treebb63a00880252c0246f52931d2aad097291e1407 /lib/AST/Stmt.cpp
parentf71d232ce5354bd2f0c94ded30fb936c2a3d968b (diff)
Add const to accessors that don't modify the object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r--lib/AST/Stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index ff35251ae3..fad80ec0cf 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -559,7 +559,7 @@ Stmt::child_iterator CXXCatchStmt::child_end() {
return &HandlerBlock + 1;
}
-QualType CXXCatchStmt::getCaughtType() {
+QualType CXXCatchStmt::getCaughtType() const {
if (ExceptionDecl)
return ExceptionDecl->getType();
return QualType();