From e272236d69961cf3686d1d4e5720bc87ec996cd4 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 25 Oct 2014 04:07:53 +0000 Subject: [PATCH] Remove unused variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220610 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gold/gold-plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index cc0e9f35661..9d6540d2d47 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -483,7 +483,7 @@ static GlobalObject *makeInternalReplacement(GlobalObject *GO) { GlobalObject *Ret; if (auto *F = dyn_cast(GO)) { if (F->isMaterializable()) { - if (std::error_code EC = F->materialize()) + if (F->materialize()) message(LDPL_FATAL, "LLVM gold plugin has failed to read a function"); }