]> granicus.if.org Git - clang/commitdiff
Petty optimization.
authorJohn McCall <rjmccall@apple.com>
Sat, 4 Sep 2010 01:26:37 +0000 (01:26 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 4 Sep 2010 01:26:37 +0000 (01:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113049 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGRTTI.cpp

index 680b2ba02757c184e5437b3eeee789d0267f31cc..60df613f65e8b99c8f12caccb1b489f61b0bc06d 100644 (file)
@@ -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.