diff options
author | Zhou Sheng <zhousheng00@gmail.com> | 2007-04-19 05:39:12 +0000 |
---|---|---|
committer | Zhou Sheng <zhousheng00@gmail.com> | 2007-04-19 05:39:12 +0000 |
commit | 843f0767acd05baed952d39e77ea89b438430a4f (patch) | |
tree | 3000ab4d833f0688ba89ed8465df79bf3a8c4309 /lib/Transforms/Scalar/ScalarReplAggregates.cpp | |
parent | 223d65b651621fcede1f9e64918e515bd0a27413 (diff) |
Make use of ConstantInt::isZero instead of ConstantInt::isNullValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/ScalarReplAggregates.cpp')
-rw-r--r-- | lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 057bc6f5c9..5bbb5aef03 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -834,7 +834,7 @@ const Type *SROA::CanConvertToScalar(Value *V, bool &IsNotTrivial) { } else if (GEP->getNumOperands() == 3 && isa<ConstantInt>(GEP->getOperand(1)) && isa<ConstantInt>(GEP->getOperand(2)) && - cast<Constant>(GEP->getOperand(1))->isNullValue()) { + cast<ConstantInt>(GEP->getOperand(1))->isZero()) { // We are stepping into an element, e.g. a structure or an array: // GEP Ptr, int 0, uint C const Type *AggTy = PTy->getElementType(); |