This patch fixes PR44896.
For IR input files, option fdiscard-value-names should be ignored as we need named values in loadModule().
Commit 60d3947922 sets this option after loadModule() where valued names already created. This creates an inconsistent state in setNameImpl() that leads to a seg fault.
This patch forces fdiscard-value-names to be false for IR input files.