Skip to content

Commit 2917bd0

Browse files
committed
Petty optimization.
llvm-svn: 113049
1 parent 2b57008 commit 2917bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGRTTI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static bool ShouldUseExternalRTTIDescriptor(ASTContext &Context,
284284
return false;
285285

286286
// Get the key function.
287-
const CXXMethodDecl *KeyFunction = RD->getASTContext().getKeyFunction(RD);
287+
const CXXMethodDecl *KeyFunction = Context.getKeyFunction(RD);
288288
if (KeyFunction && !KeyFunction->hasBody()) {
289289
// The class has a key function, but it is not defined in this translation
290290
// unit, so we should use the external descriptor for it.

0 commit comments

Comments
 (0)