summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/IRMover.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Linker/IRMover.cpp')
-rw-r--r--llvm/lib/Linker/IRMover.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp
index 1100daf7116..0d37ad1c657 100644
--- a/llvm/lib/Linker/IRMover.cpp
+++ b/llvm/lib/Linker/IRMover.cpp
@@ -786,7 +786,7 @@ Constant *IRLinker::linkAppendingVarProto(GlobalVariable *DstGV,
return nullptr;
}
- if (StringRef(DstGV->getSection()) != SrcGV->getSection()) {
+ if (DstGV->getSection() != SrcGV->getSection()) {
emitError(
"Appending variables with different section name need to be linked!");
return nullptr;
OpenPOWER on IntegriCloud