aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/InstCombine/InstCombineCalls.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-27 22:18:51 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-09-27 22:18:51 +0000
commitb060a46b0de75d6ab711b60d123ab42a9a6d7b3c (patch)
treee9d3ab31f9c4dc3c5a78d37c0c68679726d45508 /lib/Transforms/InstCombine/InstCombineCalls.cpp
parent5972df2696354b328b519bedc07d1c253648cf0e (diff)
downloadexternal_llvm-b060a46b0de75d6ab711b60d123ab42a9a6d7b3c.zip
external_llvm-b060a46b0de75d6ab711b60d123ab42a9a6d7b3c.tar.gz
external_llvm-b060a46b0de75d6ab711b60d123ab42a9a6d7b3c.tar.bz2
Use type helper functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r--lib/Transforms/InstCombine/InstCombineCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp
index beb63e8..0cd7b14 100644
--- a/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -1057,7 +1057,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
if (ParamPTy == 0 || !ParamPTy->getElementType()->isSized() || TD == 0)
return false;
- Type *CurElTy = cast<PointerType>(ActTy)->getElementType();
+ Type *CurElTy = ActTy->getPointerElementType();
if (TD->getTypeAllocSize(CurElTy) !=
TD->getTypeAllocSize(ParamPTy->getElementType()))
return false;