Skip to content
Commit 44bb4099 authored by Bjorn Pettersson's avatar Bjorn Pettersson
Browse files

[ConstraintElimination] Do not crash on vector GEP in decomposeGEP

Commit 359bc5c5 caused
 Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"'
failures in decomposeGEP when the GEP pointer operand is a vector.

Fix is to use DataLayout::getIndexTypeSizeInBits when fetching the
index size, as it will use the scalar type in case of a ptr vector.

Differential Revision: https://reviews.llvm.org/D137185
parent 9a9b904b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment