From 9cc0da9c29302e9463a6f31ba705c8e1b6f4cea1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 15 Mar 2010 20:39:00 +0000 Subject: Implement support for the case when a reference to a addr-of-bb label is generated, but then the block is deleted. Since the value is undefined, we just emit the label right after the entry label of the function. It might matter that the label is in the same section as the function was afterall. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98579 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/crash.ll | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'test/CodeGen/X86/crash.ll') diff --git a/test/CodeGen/X86/crash.ll b/test/CodeGen/X86/crash.ll index 8ce9e6c248..4b7c850993 100644 --- a/test/CodeGen/X86/crash.ll +++ b/test/CodeGen/X86/crash.ll @@ -92,26 +92,3 @@ foo: } -;; Issues with referring to a label that gets RAUW'd later. -define i32 @test6a() nounwind { -entry: - %target = bitcast i8* blockaddress(@test6b, %test_label) to i8* - - call i32 @test6b(i8* %target) - - ret i32 0 -} - -define i32 @test6b(i8* %target) nounwind { -entry: - indirectbr i8* %target, [label %test_label] - -test_label: -; assume some code here... - br label %ret - -ret: - ret i32 -1 -} - - -- cgit v1.2.3