From 83658d6e7ac38a35dbbd9ef78b38b4705111e6c1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 11 May 2016 18:21:59 +0000 Subject: Return a StringRef from getSection. This is similar to how getName is handled. llvm-svn: 269218 --- llvm/lib/Linker/IRMover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Linker') 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; -- cgit v1.2.3