r204695 - Remove redundant and misleading check. This could also lead to painful cyclic
Richard Smith
richard-llvm at metafoo.co.uk
Mon Mar 24 18:22:22 PDT 2014
Author: rsmith
Date: Mon Mar 24 20:22:22 2014
New Revision: 204695
URL: http://llvm.org/viewvc/llvm-project?rev=204695&view=rev
Log:
Remove redundant and misleading check. This could also lead to painful cyclic
deserialization.
Modified:
cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
Modified: cfe/trunk/lib/Serialization/ASTReaderDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReaderDecl.cpp?rev=204695&r1=204694&r2=204695&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReaderDecl.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReaderDecl.cpp Mon Mar 24 20:22:22 2014
@@ -2955,7 +2955,7 @@ void ASTDeclReader::UpdateDecl(Decl *D,
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;
More information about the cfe-commits
mailing list