mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-14 01:40:53 +00:00
[SelectionDAGBuilder] Use EVT::getVectorVT instead of MVT::getVectorVT to prevent a crash if the type isn't a simple VT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef0aeadf37
commit
328ed4754f
@ -3375,7 +3375,7 @@ void SelectionDAGBuilder::visitGetElementPtr(const User &I) {
|
||||
SDValue IdxN = getValue(Idx);
|
||||
|
||||
if (!IdxN.getValueType().isVector() && VectorWidth) {
|
||||
MVT VT = MVT::getVectorVT(IdxN.getValueType().getSimpleVT(), VectorWidth);
|
||||
EVT VT = EVT::getVectorVT(*Context, IdxN.getValueType(), VectorWidth);
|
||||
IdxN = DAG.getSplatBuildVector(VT, dl, IdxN);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user