summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-08-18 10:09:15 +0000
committerCraig Topper <craig.topper@gmail.com>2013-08-18 10:09:15 +0000
commit3793291d503e656765a630994b4369411449fbe7 (patch)
tree6e49a0f30f26954498397b7dc607973b22d611ff /clang/lib/AST/Stmt.cpp
parent6b8d17bf35ce138c667af2d1c6d6f3da52bb9e32 (diff)
downloadbcm5719-llvm-3793291d503e656765a630994b4369411449fbe7.tar.gz
bcm5719-llvm-3793291d503e656765a630994b4369411449fbe7.zip
Make expression allocation methods use a 'const' reference to the ASTContext since the underlying operator new only needs a const reference.
llvm-svn: 188636
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r--clang/lib/AST/Stmt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index 6a39996cac3..87e55a2fb9d 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/lib/AST/Stmt.cpp
@@ -49,12 +49,12 @@ static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) {
return StmtClassInfo[E];
}
-void *Stmt::operator new(size_t bytes, ASTContext& C,
+void *Stmt::operator new(size_t bytes, const ASTContext& C,
unsigned alignment) throw() {
return ::operator new(bytes, C, alignment);
}
-void *Stmt::operator new(size_t bytes, ASTContext* C,
+void *Stmt::operator new(size_t bytes, const ASTContext* C,
unsigned alignment) throw() {
return ::operator new(bytes, *C, alignment);
}
OpenPOWER on IntegriCloud