view test/Assembler/datalayout-alloca-addrspace-mismatch-1.ll @ 129:9ec641e857f8

Fix compile error to update llvm 5.0
author mir3636
date Tue, 12 Dec 2017 19:42:58 +0900
parents 803732b1fca8
children 3a76565eade5
line wrap: on
line source

; RUN: not llvm-as < %s 2>&1 | FileCheck %s

target datalayout = "A1"

; CHECK: :7:50: error: address space must match datalayout
define void @use_alloca() {
  %alloca_scalar_no_align = alloca i32, align 4, addrspace(2)
  ret void
}