[llvm-branch-commits] [llvm-branch] r136021 - /llvm/branches/exception-handling-rewrite/lib/VMCore/Instructions.cpp
Bill Wendling
isanbard at gmail.com
Mon Jul 25 17:02:38 PDT 2011
Author: void
Date: Mon Jul 25 19:02:37 2011
New Revision: 136021
URL: http://llvm.org/viewvc/llvm-project?rev=136021&view=rev
Log:
Improve the assert. Make sure that we have at least one clause.
Modified:
llvm/branches/exception-handling-rewrite/lib/VMCore/Instructions.cpp
Modified: llvm/branches/exception-handling-rewrite/lib/VMCore/Instructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/exception-handling-rewrite/lib/VMCore/Instructions.cpp?rev=136021&r1=136020&r2=136021&view=diff
==============================================================================
--- llvm/branches/exception-handling-rewrite/lib/VMCore/Instructions.cpp (original)
+++ llvm/branches/exception-handling-rewrite/lib/VMCore/Instructions.cpp Mon Jul 25 19:02:37 2011
@@ -172,7 +172,7 @@
void LandingPadInst::init(Value *PersFn, unsigned NumReservedValues,
const Twine &NameStr) {
- assert(NumReservedValues);
+ assert(NumReservedValues > 1 && "Landingpad needs at least one clause!");
ReservedSpace = NumReservedValues;
NumOperands = 1;
OperandList = allocHungoffUses(ReservedSpace);
More information about the llvm-branch-commits
mailing list