mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Use right pointer type in DebugIR
llvm-svn: 191576
This commit is contained in:
parent
c1629ee7a8
commit
f672e722f2
@ -402,7 +402,7 @@ private:
|
||||
Type *PointeeTy = T->getPointerElementType();
|
||||
if (!(N = getType(PointeeTy)))
|
||||
N = Builder.createPointerType(
|
||||
getOrCreateType(PointeeTy), Layout.getPointerSizeInBits(),
|
||||
getOrCreateType(PointeeTy), Layout.getPointerTypeSizeInBits(T),
|
||||
Layout.getPrefTypeAlignment(T), getTypeName(T));
|
||||
} else if (T->isArrayTy()) {
|
||||
SmallVector<Value *, 1> Subrange;
|
||||
|
13
test/Transforms/DebugIR/simple-addrspace.ll
Normal file
13
test/Transforms/DebugIR/simple-addrspace.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: opt -debug-ir -S %s -o - | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64-p1:16:16:16"
|
||||
|
||||
define void @foo(i32 addrspace(1)*) nounwind {
|
||||
ret void
|
||||
}
|
||||
|
||||
; Make sure the pointer size is 16
|
||||
|
||||
; CHECK: metadata !"i32 addrspace(1)*", i32 0, i64 16, i64 2, i64 0, i32 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user