diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-01 21:56:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-06-01 21:56:26 +0000 |
commit | 103c2cfbbdf38314e86ff9b538fc8851e0771cac (patch) | |
tree | 7add0ae4df08cd894e46525ac09dcab1b6269d28 /llvm/test/Verifier/dominates.ll | |
parent | ac80f60eed70a26377c4023a796949bb538f6182 (diff) | |
download | bcm5719-llvm-103c2cfbbdf38314e86ff9b538fc8851e0771cac.tar.gz bcm5719-llvm-103c2cfbbdf38314e86ff9b538fc8851e0771cac.zip |
Use dominates(Instruction, Use) in the verifier.
This removes a bit of context from the verifier erros, but reduces code
duplication in a fairly critical part of LLVM and makes dominates easier to test.
llvm-svn: 157845
Diffstat (limited to 'llvm/test/Verifier/dominates.ll')
-rw-r--r-- | llvm/test/Verifier/dominates.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Verifier/dominates.ll b/llvm/test/Verifier/dominates.ll index 21aa7f6cd38..50bfa616f0d 100644 --- a/llvm/test/Verifier/dominates.ll +++ b/llvm/test/Verifier/dominates.ll @@ -20,7 +20,7 @@ bb2: %y3 = landingpad i32 personality i32 ()* @g cleanup ret void -; CHECK: Invoke result not available in the unwind destination! +; CHECK: Instruction does not dominate all uses! ; CHECK-NEXT: %y1 = invoke i32 @g() ; CHECK-NEXT: to label %bb1 unwind label %bb2 ; CHECK-NEXT: %y2 = phi i32 [ %y1, %bb0 ] @@ -38,7 +38,7 @@ bb2: bb3: %y3 = phi i32 [%y1, %bb2] ret void -; CHECK: Invoke result does not dominate all uses! +; CHECK: Instruction does not dominate all uses! ; CHECK-NEXT: %y1 = invoke i32 @g() ; CHECK-NEXT: to label %bb1 unwind label %bb2 ; CHECK-NEXT: %y3 = phi i32 [ %y1, %bb2 ] |