commit | 21d68e24351ef5a2d95e6dd5676a9926dd2bf3a8 | [log] [tgz] |
---|---|---|
author | Mike Stump <mrs@apple.com> | Mon Nov 30 20:10:58 2009 +0000 |
committer | Mike Stump <mrs@apple.com> | Mon Nov 30 20:10:58 2009 +0000 |
tree | e73414ee60cfc438fda9f274c9eff86caf4bac9f | |
parent | e5311b0d79856cbba24076e3048a9c17ec93e6d9 [diff] [blame] |
Add const to accessors that don't modify the object. llvm-svn: 90153
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index ff35251..fad80ec 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp
@@ -559,7 +559,7 @@ return &HandlerBlock + 1; } -QualType CXXCatchStmt::getCaughtType() { +QualType CXXCatchStmt::getCaughtType() const { if (ExceptionDecl) return ExceptionDecl->getType(); return QualType();