diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-27 22:26:25 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-09-27 22:26:25 +0000 |
commit | b99f6e14af3752c356b6acc887e1a3dcd961e19f (patch) | |
tree | 1faf7c2a5b088219d6957ced2e28b5f9fcfa0778 /lib/Transforms | |
parent | b060a46b0de75d6ab711b60d123ab42a9a6d7b3c (diff) | |
download | external_llvm-b99f6e14af3752c356b6acc887e1a3dcd961e19f.zip external_llvm-b99f6e14af3752c356b6acc887e1a3dcd961e19f.tar.gz external_llvm-b99f6e14af3752c356b6acc887e1a3dcd961e19f.tar.bz2 |
Use right pointer type in DebugIR
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Instrumentation/DebugIR.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/DebugIR.cpp b/lib/Transforms/Instrumentation/DebugIR.cpp index 9489bb2..f50a044 100644 --- a/lib/Transforms/Instrumentation/DebugIR.cpp +++ b/lib/Transforms/Instrumentation/DebugIR.cpp @@ -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; |