Add a comment.
authorDan Gohman <gohman@apple.com>
Wed, 25 Aug 2010 20:17:19 +0000 (20:17 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 25 Aug 2010 20:17:19 +0000 (20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112080 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitcodeReader.cpp

index 2e86abfbc07539b83182758af51cd1b9c0c1b786..96b7f4d22dc536aec656cf724f036265464caa37 100644 (file)
@@ -1986,6 +1986,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
         } while(OpNum != Record.size());
 
         const Type *ReturnType = F->getReturnType();
+        // Handle multiple return values. FIXME: Remove in LLVM 3.0.
         if (Vs.size() > 1 ||
             (ReturnType->isStructTy() &&
              (Vs.empty() || Vs[0]->getType() != ReturnType))) {