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 | 26fc28d88e6ff0279e37074cc304e0cfe3e31714 (patch) | |
tree | 6e5925065409c2bf06d9de4d206c4307a5c4305b | |
parent | f38ef0c63a39306e835a91fd989cf30182a592e2 (diff) |
Petty optimization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113049 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CGRTTI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGRTTI.cpp b/lib/CodeGen/CGRTTI.cpp index 680b2ba027..60df613f65 100644 --- a/lib/CodeGen/CGRTTI.cpp +++ b/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. |