Use dyn_cast_or_null in place of dyn_cast to allow the defining op to be
a nullptr in getExtentFromTriplet.
A testcase which crashes without this change is provided.
Details
Details
- Reviewers
jeanPerier clementval peixin sscalpone
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
flang/lib/Optimizer/Builder/FIRBuilder.cpp | ||
---|---|---|
1238 | You may should rebase on current main. This has been fixed by @clementval . https://github.com/llvm/llvm-project/blob/519d7876cbee5a5d3cd40d41525cd45e44fb07a8/flang/lib/Optimizer/Builder/FIRBuilder.cpp#L1237-L1241 dyn_cast_or_null looks better than isa_and_nonnull. |
clang-format not found in user’s local PATH; not linting file.