[all-commits] [llvm/llvm-project] 92abb1: [TypePromotion] Don't mutate the result type of Sw...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Aug 16 08:54:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92abb1cf90ff65e729fca9d518150ad4c04d25e1
      https://github.com/llvm/llvm-project/commit/92abb1cf90ff65e729fca9d518150ad4c04d25e1
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-08-16 (Mon, 16 Aug 2021)

  Changed paths:
    M llvm/lib/CodeGen/TypePromotion.cpp
    M llvm/lib/IR/Verifier.cpp

  Log Message:
  -----------
  [TypePromotion] Don't mutate the result type of SwitchInst.

SwitchInst should have a void result type.

Add a check to the verifier to catch this error.

Reviewed By: samparker

Differential Revision: https://reviews.llvm.org/D108084




More information about the All-commits mailing list