diff options
author | Mike Stump <mrs@apple.com> | 2009-11-30 20:10:58 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-11-30 20:10:58 +0000 |
commit | 21d68e24351ef5a2d95e6dd5676a9926dd2bf3a8 (patch) | |
tree | e73414ee60cfc438fda9f274c9eff86caf4bac9f /clang/lib/AST | |
parent | e5311b0d79856cbba24076e3048a9c17ec93e6d9 (diff) | |
download | bcm5719-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.cpp | 2 |
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(); |