Remove redundant and misleading check. This could also lead to painful cyclic

deserialization.

llvm-svn: 204695
This commit is contained in:
Richard Smith 2014-03-25 01:22:22 +00:00
parent 961eae5f95
commit 399a6035e0
1 changed files with 1 additions and 1 deletions

View File

@ -2955,7 +2955,7 @@ void ASTDeclReader::UpdateDecl(Decl *D, ModuleFile &ModuleFile,
case UPD_CXX_INSTANTIATED_FUNCTION_DEFINITION: {
FunctionDecl *FD = cast<FunctionDecl>(D);
if (FD->hasBody() || Reader.PendingBodies[FD])
if (Reader.PendingBodies[FD])
// FIXME: Maybe check for ODR violations.
break;