Index: lib/IR/Verifier.cpp =================================================================== --- lib/IR/Verifier.cpp +++ lib/IR/Verifier.cpp @@ -3236,7 +3236,7 @@ PointerType *PTy = AI.getType(); // TODO: Relax this restriction? Assert(PTy->getAddressSpace() == DL.getAllocaAddrSpace(), - "Allocation instruction pointer not in the stack address space!", + "Allocation instruction pointer not in the dataLayout alloca address space!", &AI); Assert(AI.getAllocatedType()->isSized(&Visited), "Cannot allocate unsized type", &AI); Index: test/Assembler/datalayout-alloca-addrspace-mismatch-0.ll =================================================================== --- test/Assembler/datalayout-alloca-addrspace-mismatch-0.ll +++ test/Assembler/datalayout-alloca-addrspace-mismatch-0.ll @@ -2,7 +2,7 @@ target datalayout = "A1" -; CHECK: Allocation instruction pointer not in the stack address space! +; CHECK: Allocation instruction pointer not in the dataLayout alloca address space! ; CHECK-NEXT: %alloca_scalar_no_align = alloca i32, addrspace(2) define void @use_alloca() { Index: test/Assembler/datalayout-alloca-addrspace-mismatch-1.ll =================================================================== --- test/Assembler/datalayout-alloca-addrspace-mismatch-1.ll +++ test/Assembler/datalayout-alloca-addrspace-mismatch-1.ll @@ -2,7 +2,7 @@ target datalayout = "A1" -; CHECK: Allocation instruction pointer not in the stack address space! +; CHECK: Allocation instruction pointer not in the dataLayout alloca address space! ; CHECK-NEXT: %alloca_scalar_no_align = alloca i32, align 4, addrspace(2) define void @use_alloca() { Index: test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll =================================================================== --- test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll +++ test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll @@ -2,7 +2,7 @@ target datalayout = "A1" -; CHECK: Allocation instruction pointer not in the stack address space! +; CHECK: Allocation instruction pointer not in the dataLayout alloca address space! ; CHECK-NEXT: %alloca_scalar_no_align = alloca i32, align 4, addrspace(2), !foo !0 define void @use_alloca() { Index: test/CodeGen/AMDGPU/invalid-alloca.ll =================================================================== --- test/CodeGen/AMDGPU/invalid-alloca.ll +++ test/CodeGen/AMDGPU/invalid-alloca.ll @@ -5,7 +5,7 @@ ; RUN: llvm-as < %s | not opt -data-layout=A5 2>&1 | FileCheck -check-prefixes=COMMON,LLC %s ; AS: assembly parsed, but does not verify as correct! -; COMMON: Allocation instruction pointer not in the stack address space! +; COMMON: Allocation instruction pointer not in the dataLayout alloca address space! ; COMMON: %tmp = alloca i32 ; LLC: error: input module is broken!