This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Standard] Fix use of `dyn_cast_or_null`
ClosedPublic

Authored by frgossen on Jun 16 2020, 1:45 PM.

Details

Summary

The value may be a function argument in which case getDefiningOp will return a
nullptr.

Diff Detail

Event Timeline

frgossen created this revision.Jun 16 2020, 1:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2020, 1:45 PM
pifon2a accepted this revision.Jun 16 2020, 2:02 PM

Thank you, Frederik!

This revision is now accepted and ready to land.Jun 16 2020, 2:02 PM
This revision was automatically updated to reflect the committed changes.