summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-27 22:26:25 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-27 22:26:25 +0000
commit31cfc78f8182a38346e887056ca17b23bcd19d30 (patch)
treeb3213d43a4d21a86dbb69318a263e489d30ec4d8 /llvm/lib/Transforms/Instrumentation
parent2cf77525be60d6684d73207e380ad715c6ea2903 (diff)
downloadbcm5719-llvm-31cfc78f8182a38346e887056ca17b23bcd19d30.tar.gz
bcm5719-llvm-31cfc78f8182a38346e887056ca17b23bcd19d30.zip
Use right pointer type in DebugIR
llvm-svn: 191576
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-rw-r--r--llvm/lib/Transforms/Instrumentation/DebugIR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp
index 9489bb2556f..f50a044073f 100644
--- a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud