modified ternary operator to use a phi node instead of a temporary var
modified ternary operator to use a phi node instead of a temporary var

fjolnir/Tranquil,gabrielPeart/Tranquil,gabrielPeart/Tranquil,fjolnir/Tranquil,gabrielPeart/Tranquil,fjolnir/Tranquil,gabrielPeart/Tranquil,gabrielPeart/Tranquil,fjolnir/Tranquil,fjolnir/Tranquil,fjolnir/Tranquil,gabrielPeart/Tranquil