From ba41539548edc7747f09c66d5c337c4b1eb3750e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 17 Mar 2015 12:54:04 +0000 Subject: Replace a use of GetTempSymbol with createTempSymbol. This is cleaner and avoids a crash in a corner case. llvm-svn: 232471 --- llvm/test/CodeGen/X86/exception-label.ll | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 llvm/test/CodeGen/X86/exception-label.ll (limited to 'llvm/test/CodeGen/X86/exception-label.ll') diff --git a/llvm/test/CodeGen/X86/exception-label.ll b/llvm/test/CodeGen/X86/exception-label.ll new file mode 100644 index 00000000000..cafa1e630b9 --- /dev/null +++ b/llvm/test/CodeGen/X86/exception-label.ll @@ -0,0 +1,23 @@ +; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s + +; Test that we can handle .Lexception0 being defined. We used to crash. + +; CHECK: .cfi_lsda 3, [[LABEL:.*]] +; CHECK: [[LABEL]]: +; CHECK-NEXT: .byte 255 # @LPStart Encoding = omit + +declare void @g() + +define void @f() { +bb0: + call void asm ".Lexception0:", ""() + invoke void @g() + to label %bb2 unwind label %bb1 +bb1: + landingpad { i8*, i32 } personality i8* bitcast (void ()* @g to i8*) + catch i8* null + br label %bb2 + +bb2: + ret void +} -- cgit v1.2.3