Commit 00bfef27 authored by Nikita Popov's avatar Nikita Popov
Browse files

[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.
parent 2e658290
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment