diff options
author | John McCall <rjmccall@apple.com> | 2010-09-04 01:26:37 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-04 01:26:37 +0000 |
commit | 2917bd0fb48d0da873854e6347a72dcb11959a08 (patch) | |
tree | 9844d272752e684d010975e17e3421cb993f0251 | |
parent | 2b57008c7274b18875f4686f0a6dde9b18e4ecc2 (diff) | |
download | llvm-2917bd0fb48d0da873854e6347a72dcb11959a08.zip llvm-2917bd0fb48d0da873854e6347a72dcb11959a08.tar.gz llvm-2917bd0fb48d0da873854e6347a72dcb11959a08.tar.bz2 |
Petty optimization.
llvm-svn: 113049
-rw-r--r-- | clang/lib/CodeGen/CGRTTI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp index 680b2ba..60df613 100644 --- a/clang/lib/CodeGen/CGRTTI.cpp +++ b/clang/lib/CodeGen/CGRTTI.cpp @@ -284,7 +284,7 @@ static bool ShouldUseExternalRTTIDescriptor(ASTContext &Context, return false; // Get the key function. - const CXXMethodDecl *KeyFunction = RD->getASTContext().getKeyFunction(RD); + const CXXMethodDecl *KeyFunction = Context.getKeyFunction(RD); if (KeyFunction && !KeyFunction->hasBody()) { // The class has a key function, but it is not defined in this translation // unit, so we should use the external descriptor for it. |