[all-commits] [llvm/llvm-project] 00bfef: [NVPTXAsmPrinter] Extract common error handling code
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Nov 1 04:16:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 00bfef272a36f0a73ba73892e668349f259a7efd
https://github.com/llvm/llvm-project/commit/00bfef272a36f0a73ba73892e668349f259a7efd
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-11-01 (Wed, 01 Nov 2023)
Changed paths:
M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list