[WinEH] Clone funclets with multiple parents
[oota-llvm.git] / lib / AsmParser / LLParser.cpp
index 1c219ad6cd8ec22017695f1a074ae286b25f36c2..7774a70f5f44c5e8059e3b4c71b5ebb96a239fa3 100644 (file)
@@ -5322,7 +5322,8 @@ bool LLParser::ParseCleanupEndPad(Instruction *&Inst, PerFunctionState &PFS) {
     if (Lex.getKind() == lltok::kw_caller) {
       Lex.Lex();
     } else {
-      return true;
+      return Error(Lex.getLoc(),
+                   "'to' must be followed by 'caller' in catchendpad");
     }
   } else {
     if (ParseTypeAndBasicBlock(UnwindBB, PFS)) {