aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorJinsong Ji <jji@us.ibm.com>2021-08-10 17:43:05 +0000
committerJinsong Ji <jji@us.ibm.com>2021-08-10 17:43:06 +0000
commit2cfd42762638168131dd9f2b494825e293758136 (patch)
tree6307a02f48aac463e82a2258a8e23c75163908aa /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent3ad9826dcd480d04480ebb98dae426f435a2c135 (diff)
downloadllvm-2cfd42762638168131dd9f2b494825e293758136.zip
llvm-2cfd42762638168131dd9f2b494825e293758136.tar.gz
llvm-2cfd42762638168131dd9f2b494825e293758136.tar.bz2
[AIX] Don't crash on unimplemented lowerRelativeReference
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. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D107830
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 3383f5a..0c019e7 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -2456,7 +2456,8 @@ MCSection *TargetLoweringObjectFileXCOFF::getStaticDtorSection(
const MCExpr *TargetLoweringObjectFileXCOFF::lowerRelativeReference(
const GlobalValue *LHS, const GlobalValue *RHS,
const TargetMachine &TM) const {
- report_fatal_error("XCOFF not yet implemented.");
+ /* Not implemented yet, but don't crash, return nullptr. */
+ return nullptr;
}
XCOFF::StorageClass