This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Check GlobalVariableOp result to be of pointer types
ClosedPublic

Authored by antiagainst on Nov 30 2022, 3:35 PM.

Details

Summary

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.

Diff Detail

Event Timeline

antiagainst created this revision.Nov 30 2022, 3:35 PM
antiagainst requested review of this revision.Nov 30 2022, 3:35 PM
kuhar accepted this revision.Nov 30 2022, 3:56 PM
This revision is now accepted and ready to land.Nov 30 2022, 3:56 PM