; RUN: opt < %s -gvn-hoist -S | FileCheck %s @g = external constant i8* declare i32 @gxx_personality(...) declare void @f0() declare void @f1() declare void @f2() ; Make sure opt won't crash and that the load ; is not hoisted from label6 to label4 ;CHECK-LABEL: @func define void @func() personality i8* bitcast (i32 (...)* @gxx_personality to i8*) { invoke void @f0() to label %3 unwind label %1 ;