[cfe-commits] r113049 - /cfe/trunk/lib/CodeGen/CGRTTI.cpp
John McCall
rjmccall at apple.com
Fri Sep 3 18:26:38 PDT 2010
Author: rjmccall
Date: Fri Sep 3 20:26:37 2010
New Revision: 113049
URL: http://llvm.org/viewvc/llvm-project?rev=113049&view=rev
Log:
Petty optimization.
Modified:
cfe/trunk/lib/CodeGen/CGRTTI.cpp
Modified: cfe/trunk/lib/CodeGen/CGRTTI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRTTI.cpp?rev=113049&r1=113048&r2=113049&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRTTI.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRTTI.cpp Fri Sep 3 20:26:37 2010
@@ -284,7 +284,7 @@
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.
More information about the cfe-commits
mailing list