summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-10-29 17:31:46 +0000
committerDuncan Sands <baldrick@free.fr>2012-10-29 17:31:46 +0000
commit5bdd9dda48fd6f994148a25d6211c581b9ced787 (patch)
tree63ebe4ebf6b803ca72a710de0da5d79a1ef2c301 /llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
parent09d16aa87e594afa0a8798748d13fb185cb25b31 (diff)
downloadbcm5719-llvm-5bdd9dda48fd6f994148a25d6211c581b9ced787.tar.gz
bcm5719-llvm-5bdd9dda48fd6f994148a25d6211c581b9ced787.zip
Remove a wrapper around getIntPtrType added to GVN by Hal in commit 166624 (the
wrapper returns a vector of integers when passed a vector of pointers) by having getIntPtrType itself return a vector of integers in this case. Outside of this wrapper, I didn't find anywhere in the codebase that was relying on the old behaviour for vectors of pointers, so give this a whirl through the buildbots. llvm-svn: 166939
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
index dd36a000704..7810b1b8a3e 100644
--- a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
+++ b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
@@ -143,7 +143,7 @@ bool BoundsChecking::instrument(Value *Ptr, Value *InstVal) {
Value *Offset = SizeOffset.second;
ConstantInt *SizeCI = dyn_cast<ConstantInt>(Size);
- IntegerType *IntTy = TD->getIntPtrType(Ptr->getType());
+ Type *IntTy = TD->getIntPtrType(Ptr->getType());
Value *NeededSizeVal = ConstantInt::get(IntTy, NeededSize);
// three checks are required to ensure safety:
OpenPOWER on IntegriCloud