getBody() -> hasBody()

llvm-svn: 107773
This commit is contained in:
Argyrios Kyrtzidis
2010-07-07 12:24:18 +00:00
parent 0b6a06a335
commit 54fcbc7345

View File

@@ -271,7 +271,7 @@ static bool ShouldUseExternalRTTIDescriptor(ASTContext &Context,
// Get the key function.
const CXXMethodDecl *KeyFunction = RD->getASTContext().getKeyFunction(RD);
if (KeyFunction && !KeyFunction->getBody()) {
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.
return true;