aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-09-04 01:26:37 +0000
committerJohn McCall <rjmccall@apple.com>2010-09-04 01:26:37 +0000
commit2917bd0fb48d0da873854e6347a72dcb11959a08 (patch)
tree9844d272752e684d010975e17e3421cb993f0251
parent2b57008c7274b18875f4686f0a6dde9b18e4ecc2 (diff)
downloadllvm-2917bd0fb48d0da873854e6347a72dcb11959a08.zip
llvm-2917bd0fb48d0da873854e6347a72dcb11959a08.tar.gz
llvm-2917bd0fb48d0da873854e6347a72dcb11959a08.tar.bz2
Petty optimization.
llvm-svn: 113049
-rw-r--r--clang/lib/CodeGen/CGRTTI.cpp2
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.