summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
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
commit21d68e24351ef5a2d95e6dd5676a9926dd2bf3a8 (patch)
treee73414ee60cfc438fda9f274c9eff86caf4bac9f /clang/lib/AST
parente5311b0d79856cbba24076e3048a9c17ec93e6d9 (diff)
downloadbcm5719-llvm-21d68e24351ef5a2d95e6dd5676a9926dd2bf3a8.tar.gz
bcm5719-llvm-21d68e24351ef5a2d95e6dd5676a9926dd2bf3a8.zip
Add const to accessors that don't modify the object.
llvm-svn: 90153
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/Stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index ff35251ae39..fad80ec0cf2 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud