diff options
Diffstat (limited to 'llvm/lib/Linker/IRMover.cpp')
-rw-r--r-- | llvm/lib/Linker/IRMover.cpp | 2 |
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; |