| Rafael Espindola | 170a6e7 | 2014-01-07 19:38:47 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic | FileCheck %s |
| 2 | |
| 3 | ; PR18390 |
| 4 | ; We used to assert creating this label. The name itself is not critical. It |
| 5 | ; just needs to be a unique local symbol. |
| 6 | ; CHECK: .L.Lstr.DW.stub: |
| 7 | ; CHECK-NEXT: .quad .Lstr |
| 8 | |
| 9 | @str = private unnamed_addr constant [12 x i8] c"NSException\00" |
| David Majnemer | 7fddecc | 2015-06-17 20:52:32 +0000 | [diff] [blame] | 10 | define void @f() personality i8* bitcast (void ()* @h to i8*) { |
| Rafael Espindola | 170a6e7 | 2014-01-07 19:38:47 +0000 | [diff] [blame] | 11 | invoke void @g() |
| 12 | to label %invoke.cont unwind label %lpad |
| 13 | invoke.cont: |
| 14 | ret void |
| 15 | lpad: |
| David Majnemer | 7fddecc | 2015-06-17 20:52:32 +0000 | [diff] [blame] | 16 | %tmp14 = landingpad { i8*, i32 } |
| David Blaikie | f72d05b | 2015-03-13 18:20:45 +0000 | [diff] [blame] | 17 | catch i8* getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0) |
| Rafael Espindola | 170a6e7 | 2014-01-07 19:38:47 +0000 | [diff] [blame] | 18 | ret void |
| 19 | } |
| 20 | declare void @g() |
| 21 | declare void @h() |