diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-01 14:13:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-01 14:13:13 +0000 |
commit | bac7490ffc23704cce0648ea962314744acf30ab (patch) | |
tree | f0c2acf7e26ce7140aee2967fff2e7d84ee84097 /clang/lib/CodeGen/CGException.cpp | |
parent | d2965c10a1b64c6678cccd4708efe12f0f78bfeb (diff) | |
download | bcm5719-llvm-bac7490ffc23704cce0648ea962314744acf30ab.tar.gz bcm5719-llvm-bac7490ffc23704cce0648ea962314744acf30ab.zip |
Remove unnecessary ASTContext parameter from
CXXRecordDecl::getDestructor(); no functionality change.
llvm-svn: 107394
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGException.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index 83d91edb106..182c2ea877f 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -304,7 +304,7 @@ void CodeGenFunction::EmitCXXThrowExpr(const CXXThrowExpr *E) { if (const RecordType *RecordTy = ThrowType->getAs<RecordType>()) { CXXRecordDecl *Record = cast<CXXRecordDecl>(RecordTy->getDecl()); if (!Record->hasTrivialDestructor()) { - CXXDestructorDecl *DtorD = Record->getDestructor(getContext()); + CXXDestructorDecl *DtorD = Record->getDestructor(); Dtor = CGM.GetAddrOfCXXDestructor(DtorD, Dtor_Complete); Dtor = llvm::ConstantExpr::getBitCast(Dtor, Int8PtrTy); } |