This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Improve debug messages in BuiltinTypes
ClosedPublic

Authored by GMNGeoffrey on Aug 6 2021, 4:00 PM.

Details

Summary

It's nice for users to have more information when debugging failures and
these are only triggered in a failure path.

Diff Detail

Event Timeline

GMNGeoffrey created this revision.Aug 6 2021, 4:00 PM
GMNGeoffrey requested review of this revision.Aug 6 2021, 4:00 PM
rriddle added inline comments.Aug 6 2021, 4:01 PM
mlir/lib/IR/BuiltinTypes.cpp
455

The llvm::to_vector here looks suspicious, why is this necessary?

Drop unnecessary to_vector

GMNGeoffrey added inline comments.Oct 5 2021, 7:21 PM
mlir/lib/IR/BuiltinTypes.cpp
455

It's not, and I don't know why for some reason I thought it was. I must have misdiagnosed some other error.

mehdi_amini accepted this revision.Oct 5 2021, 7:55 PM
This revision is now accepted and ready to land.Oct 5 2021, 7:55 PM
This revision was automatically updated to reflect the committed changes.