commit | 1608769abeb1430dc34f31ffac0d9850f99ae36a | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nadav.rotem@intel.com> | Mon Dec 05 06:29:09 2011 +0000 |
committer | Nadav Rotem <nadav.rotem@intel.com> | Mon Dec 05 06:29:09 2011 +0000 |
tree | 7834f9a415e0348f155f2834c40171c3b13d60ed | |
parent | 8e1b12ae68cd6ae5180cb300a05bae5ddf0c49ae [diff] [blame] |
Add support for vectors of pointers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145801 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 4b14efc..bc70c51 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -453,6 +453,8 @@ // Compute the offset that this GEP adds to the pointer. SmallVector<Value*, 8> Indices(GEP->op_begin()+1, GEP->op_end()); + if (!GEP->getPointerOperandType()->isPointerTy()) + return false; uint64_t GEPOffset = TD.getIndexedOffset(GEP->getPointerOperandType(), Indices); // See if all uses can be converted.