The assert is misplaced as the result type is allowed to be null. A few
lines below the result type is inferred if it is passed a nullptr.
Besides, this behavior is described in the documentation of the builder.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I suppose the intention was to check that the type is a ranked type when it is actually provided. This builder delegates to another, which does a cast that will assert, so there is no extra benefit in having this one.