[PATCH] D86727: [SVE] Remove bad call to VectorType::getNumElements() from HeapProfiler
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 12:16:19 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG035833ae42aa: [SVE] Remove bad call to VectorType::getNumElements() from HeapProfiler (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86727/new/
https://reviews.llvm.org/D86727
Files:
llvm/lib/Transforms/Instrumentation/HeapProfiler.cpp
Index: llvm/lib/Transforms/Instrumentation/HeapProfiler.cpp
===================================================================
--- llvm/lib/Transforms/Instrumentation/HeapProfiler.cpp
+++ llvm/lib/Transforms/Instrumentation/HeapProfiler.cpp
@@ -414,8 +414,8 @@
Value *Addr, unsigned Alignment,
uint32_t TypeSize,
bool IsWrite) {
- auto *VTy =
- cast<VectorType>(cast<PointerType>(Addr->getType())->getElementType());
+ auto *VTy = cast<FixedVectorType>(
+ cast<PointerType>(Addr->getType())->getElementType());
uint64_t ElemTypeSize = DL.getTypeStoreSizeInBits(VTy->getScalarType());
unsigned Num = VTy->getNumElements();
auto *Zero = ConstantInt::get(IntptrTy, 0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86727.288423.patch
Type: text/x-patch
Size: 832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200827/2bdac5f6/attachment.bin>
More information about the llvm-commits
mailing list