blob: 87ff922275ce3e9b2a237f776a24b00ccdc0b197 [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -passes=mem2reg -S | FileCheck %s
; Do not crash ;)
target datalayout = "e-p:64:64-p5:32:32-A5"
define amdgpu_kernel void @addressspace_alloca() {
; CHECK-LABEL: @addressspace_alloca(
; CHECK-NEXT: ret void
;
%alloca = alloca i8, align 8, addrspace(5)
call void @llvm.lifetime.start(i64 2, ptr addrspace(5) %alloca)
ret void
}