invoke.ll 565 B

12345678910111213141516171819
  1. ; RUN: opt -verify -disable-output < %s
  2. ; This tests that we handle unreachable blocks correctly
  3. define void @f() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
  4. %v1 = invoke i32* @g()
  5. to label %bb1 unwind label %bb2
  6. invoke void @__dynamic_cast()
  7. to label %bb1 unwind label %bb2
  8. bb1:
  9. %Hidden = getelementptr inbounds i32, i32* %v1, i64 1
  10. ret void
  11. bb2:
  12. %lpad.loopexit80 = landingpad { i8*, i32 }
  13. cleanup
  14. ret void
  15. }
  16. declare i32 @__gxx_personality_v0(...)
  17. declare void @__dynamic_cast()
  18. declare i32* @g()