[all-commits] [llvm/llvm-project] c2be70: [AsmPrinter] Move lowerConstant() error code out o...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 22 07:08:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2be703c6cd4262699a6255e8b5e4331f949e10b
      https://github.com/llvm/llvm-project/commit/c2be703c6cd4262699a6255e8b5e4331f949e10b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

  Log Message:
  -----------
  [AsmPrinter] Move lowerConstant() error code out of switch (NFC)

Move this out of the switch, so that different branches can
indicate an error by breaking out of the switch. This becomes
important if there are more than the two current error cases.




More information about the All-commits mailing list