From: Rafael Espindola Date: Sat, 25 Oct 2014 04:07:53 +0000 (+0000) Subject: Remove unused variable. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=e272236d69961cf3686d1d4e5720bc87ec996cd4;hp=72478e59c7dfb01870a8f6b5ae6c7e1fb18719c3 Remove unused variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220610 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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"); }