Minor logic simplification.
authorDan Gohman <gohman@apple.com>
Sat, 29 Aug 2009 23:37:49 +0000 (23:37 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 29 Aug 2009 23:37:49 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80453 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp

index 784672acef2e86143c65d0eea98c19e2740fa6e8..4f7a440c019ef37ba368d970db21c3280b14a58f 100644 (file)
@@ -2501,7 +2501,7 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
       }
     }
     
-  } else if (FunctionName.empty()) {
+  } else {
     // If this is a definition of a forward referenced function, make sure the
     // types agree.
     std::map<unsigned, std::pair<GlobalValue*, LocTy> >::iterator I