[NVPTXAsmPrinter] Extract common error handling code
Make the code structure more similar to how the original code in AsmPrinter looks nowadays: On error, break from the switch and fall through to general error handling code, which will try to ConstantFold and otherwise report an error. Ensures we always go through the constant folding path and avoids duplicating the error printing.
Loading
Please sign in to comment