aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorXiangling Liao <Xiangling.Liao@ibm.com>2019-11-20 11:26:08 -0500
committerXiangling Liao <Xiangling.Liao@ibm.com>2019-11-20 11:29:10 -0500
commit750e855641be2131b3189d0310e5cc4610c4020d (patch)
treea02a73560411c6194ea9a3c9c0ff976c0d6a84df /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent5665fc91fe93fa4293eb5aceff4884826d8cecb1 (diff)
downloadllvm-750e855641be2131b3189d0310e5cc4610c4020d.zip
llvm-750e855641be2131b3189d0310e5cc4610c4020d.tar.gz
llvm-750e855641be2131b3189d0310e5cc4610c4020d.tar.bz2
A fix of the bug introduced by previous lowering in asm patch.
Differential Revision: https://reviews.llvm.org/D70243
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 34ed476..ee9d388 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -1905,8 +1905,7 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForConstant(
const DataLayout &DL, SectionKind Kind, const Constant *C,
unsigned &Align) const {
//TODO: Enable emiting constant pool to unique sections when we support it.
- if (Kind.isReadOnly() && ReadOnlySection != nullptr)
- return ReadOnlySection;
+ return ReadOnlySection;
}
void TargetLoweringObjectFileXCOFF::Initialize(MCContext &Ctx,