Fix crash when trying to unconditionally cast alloca type to PointerType
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/Transforms/RewriteStatepointsForGC/vector-nonlive-clobber.ll | ||
---|---|---|
4 | will fix typo before landing |
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | ||
---|---|---|
2086–2090 |
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | ||
---|---|---|
2086–2090 | Ternary operator is not able to implicitly cast ConstantAggregateZero and ConstantPointerNull to the common base type Constant, so this version would need explicit static_casts at which point I feel like the if wins out in terseness/readability. |