We may call lowerRelativeReference in MC to determine whether target
supports this lowering. We should return nullptr instead of crashing
when we haven't implemented the real lowering.
Details
Details
- Reviewers
w2yehia shchenz hubert.reinterpretcast - Group Reviewers
Restricted Project - Commits
- rG2cfd42762638: [AIX] Don't crash on unimplemented lowerRelativeReference
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yes, it looks like the default implementation in the base class just returns nullptr and some other implementations reach points where they return nullptr. LGTM; thanks.
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | ||
---|---|---|
2459–2460 | Minor nit: formatting. |
Comment Actions
We should add a test case for this. It would be good to verify that the caller does the right thing when we return a nullptr here.
Minor nit: formatting.