For BOZ literals, the rhsType will be empty. Check for that before
trying to access its value.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| flang/lib/Lower/Bridge.cpp | ||
|---|---|---|
| 2878–2879 | Thanks for the fix Pete. Can we combine this in a single if? | |
| flang/lib/Lower/Bridge.cpp | ||
|---|---|---|
| 2864–2865 | The rhsType check should only apply to the rhsType->IsPolymorphic() || rhsType->IsUnlimitedPolymorphic() part. If lhsType is polymorphic but the rhsType is typeless, we still want to lower to the assign runtime function. | |
| flang/lib/Lower/Bridge.cpp | ||
|---|---|---|
| 2864–2865 | Thanks, @clementval! | |
The rhsType check should only apply to the rhsType->IsPolymorphic() || rhsType->IsUnlimitedPolymorphic() part. If lhsType is polymorphic but the rhsType is typeless, we still want to lower to the assign runtime function.