This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Remove unnecessary cast.
ClosedPublic

Authored by antonio-cortes-perez on Mar 13 2022, 11:00 AM.

Details

Summary

I was reading this post:
https://www.fluentcpp.com/2017/05/19/crtp-helper/

And I noticed that most likely this cast is not needed.
Unless it is needed by some compiler versions.
I tested it with:
cmake --build . --target check-mlir

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
antonio-cortes-perez requested review of this revision.Mar 13 2022, 11:00 AM

Friendly ping. I would appreciate if anyone could help reviewing this small NFC.

rriddle accepted this revision.Mar 28 2022, 7:48 AM

Looks good.

(I was OOO, sorry for the delay)

mlir/include/mlir/IR/OpDefinition.h
324–326

We could probably just do:

This revision is now accepted and ready to land.Mar 28 2022, 7:48 AM

[NFC] Remove unnecessary casts.

+ Applied suggestion of removing additional cast.
+ Removed comment that no longer applies.

antonio-cortes-perez marked an inline comment as done.Mar 28 2022, 7:35 PM
antonio-cortes-perez added inline comments.
mlir/include/mlir/IR/OpDefinition.h
324–326

Nice! Thanks for the suggestion. I also removed the comment which no longer applies. Could you please help me to commit it?

This revision was automatically updated to reflect the committed changes.