[all-commits] [llvm/llvm-project] 2e17ff: [mlir][LLVM] Improve error handling in switch parsing

Christian Ulmann via All-commits all-commits at lists.llvm.org
Tue Jun 27 02:02:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e17ffb469e97d7cf8d2f4a093d34afd698ac19f
      https://github.com/llvm/llvm-project/commit/2e17ffb469e97d7cf8d2f4a093d34afd698ac19f
  Author: Christian Ulmann <christian.ulmann at nextsilicon.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Dialect/LLVMIR/invalid.mlir

  Log Message:
  -----------
  [mlir][LLVM] Improve error handling in switch parsing

This commit changes the 'llvm.switch' parsing to not silently fail when
it encounters superfluous commas in the case list.

Reviewed By: gysit

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




More information about the All-commits mailing list