We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 101f19a commit a1e8a6aCopy full SHA for a1e8a6a
ir/instr.cpp
@@ -1561,12 +1561,13 @@ StateValue FpConversionOp::toSMT(State &s) const {
1561
1562
if (getType().isVectorType()) {
1563
vector<StateValue> vals;
1564
- auto ty = getType().getAsAggregateType();
+ auto ty = val->getType().getAsAggregateType();
1565
+ auto retty = getType().getAsAggregateType();
1566
1567
for (unsigned i = 0, e = ty->numElementsConst(); i != e; ++i) {
- vals.emplace_back(scalar(ty->extract(v, i), ty->getChild(i)));
1568
+ vals.emplace_back(scalar(ty->extract(v, i), retty->getChild(i)));
1569
}
- return ty->aggregateVals(vals);
1570
+ return retty->aggregateVals(vals);
1571
1572
return scalar(v, getType());
1573
0 commit comments