[llvm-branch-commits] [llvm-branch] r136022 - /llvm/branches/exception-handling-rewrite/lib/Bitcode/Reader/BitcodeReader.cpp
Bill Wendling
isanbard at gmail.com
Mon Jul 25 17:05:09 PDT 2011
Author: void
Date: Mon Jul 25 19:05:09 2011
New Revision: 136022
URL: http://llvm.org/viewvc/llvm-project?rev=136022&view=rev
Log:
The landingpad should have a minimum of 5 entries in the bitcode.
Modified:
llvm/branches/exception-handling-rewrite/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/branches/exception-handling-rewrite/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/exception-handling-rewrite/lib/Bitcode/Reader/BitcodeReader.cpp?rev=136022&r1=136021&r2=136022&view=diff
==============================================================================
--- llvm/branches/exception-handling-rewrite/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/branches/exception-handling-rewrite/lib/Bitcode/Reader/BitcodeReader.cpp Mon Jul 25 19:05:09 2011
@@ -2500,7 +2500,7 @@
case bitc::FUNC_CODE_INST_LANDINGPAD: {
// LANDINGPAD: [ty, val, num, id0,val0 ...]
unsigned Idx = 0;
- if (Record.size() < 3) ////////////////
+ if (Record.size() < 5)
return Error("Invalid LANDINGPAD record");
Type *Ty = getTypeByID(Record[Idx++]);
if (!Ty) return Error("Invalid LANDINGPAD record");
More information about the llvm-branch-commits
mailing list