aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 04:46:57 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-11-10 04:46:57 +0000
commit6d9e013447efb7f9fbed8d3348d6dbde208f32a7 (patch)
tree58676d117a5dc1f9d7d1148da0d993038dda2c6e /lib/Transforms/Utils
parent30150a128c7b2488225331417153ccec75bac65c (diff)
downloadexternal_llvm-6d9e013447efb7f9fbed8d3348d6dbde208f32a7.zip
external_llvm-6d9e013447efb7f9fbed8d3348d6dbde208f32a7.tar.gz
external_llvm-6d9e013447efb7f9fbed8d3348d6dbde208f32a7.tar.bz2
Use type form of getIntPtrType.
This should be inconsequential and is work towards removing the default address space arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/SimplifyLibCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp
index d838851..a060c34 100644
--- a/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -1047,7 +1047,7 @@ struct MemSetOpt : public LibCallOptimization {
if (FT->getNumParams() != 3 || FT->getReturnType() != FT->getParamType(0) ||
!FT->getParamType(0)->isPointerTy() ||
!FT->getParamType(1)->isIntegerTy() ||
- FT->getParamType(2) != TD->getIntPtrType(*Context))
+ FT->getParamType(2) != TD->getIntPtrType(FT->getParamType(0)))
return 0;
// memset(p, v, n) -> llvm.memset(p, v, n, 1)