diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-12-20 21:20:13 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-12-20 21:20:13 +0000 |
| commit | 6fc3c7a8be74a4ce2450dfa2d444a382b364b021 (patch) | |
| tree | 9a861725f3871d90b9641a70f57678c373f1ba8a /llvm/lib | |
| parent | 41621a72f5e69bbf6819ea71d77b616adb8f57b6 (diff) | |
| download | bcm5719-llvm-6fc3c7a8be74a4ce2450dfa2d444a382b364b021.tar.gz bcm5719-llvm-6fc3c7a8be74a4ce2450dfa2d444a382b364b021.zip | |
Fix Regression/Verifier/invoke-1.ll
llvm-svn: 32722
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index b26248b897d..ea30ca48a7f 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -902,6 +902,10 @@ void Verifier::visitInstruction(Instruction &I) { if (InvokeInst *II = dyn_cast<InvokeInst>(Op)) { OpBlock = II->getNormalDest(); + Assert2(OpBlock != II->getUnwindDest(), + "No uses of invoke possible due to dominance structure!", + Op, II); + // If the normal successor of an invoke instruction has multiple // predecessors, then the normal edge from the invoke is critical, so // the invoke value can only be live if the destination block @@ -931,8 +935,9 @@ void Verifier::visitInstruction(Instruction &I) { } } } - Assert1(!Bad, - "Invoke value defined on critical edge but not dead!", &I); + Assert2(!Bad, + "Invoke value defined on critical edge but not dead!", &I, + Op); } } else if (OpBlock == BB) { // If they are in the same basic block, make sure that the definition |

