[mlir] split type conversion to two lines for GCC's sake

This commit is contained in:
Tres Popp 2021-07-26 14:15:37 +02:00
parent a053afed49
commit 539437e288
1 changed files with 4 additions and 1 deletions

View File

@ -394,7 +394,10 @@ private:
auto terminatorOperands = *getMutableRegionBranchSuccessorOperands(
terminator, region.getRegionNumber());
// Extract the source value from the current terminator.
Value sourceValue = ((OperandRange)terminatorOperands)[operandIndex];
// This conversion needs to exist on a separate line due to a bug in
// GCC conversion analysis.
OperandRange immutableTerminatorOperands = terminatorOperands;
Value sourceValue = immutableTerminatorOperands[operandIndex];
// Create a new clone at the current location of the terminator.
Value clone = introduceCloneBuffers(sourceValue, terminator);
// Wire clone and terminator operand.