[all-commits] [llvm/llvm-project] b948a9: [mlir][spirv] Check GlobalVariableOp result to be ...

Lei Zhang via All-commits all-commits at lists.llvm.org
Wed Nov 30 16:14:00 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b948a9f40ffec7d8128a44d304cfe7305b9f051c
      https://github.com/llvm/llvm-project/commit/b948a9f40ffec7d8128a44d304cfe7305b9f051c
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2022-11-30 (Wed, 30 Nov 2022)

  Changed paths:
    M mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
    M mlir/test/Dialect/SPIRV/IR/structure-ops.mlir

  Log Message:
  -----------
  [mlir][spirv] Check GlobalVariableOp result to be of pointer types

Querying the storage class in the verifier will assume the result
type is of pointer types. We need to check that's true first to
make sure it won't crash.

Reviewed By: kuhar

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




More information about the All-commits mailing list