Remove unused variable.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 25 Oct 2014 04:07:53 +0000 (04:07 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 25 Oct 2014 04:07:53 +0000 (04:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220610 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index cc0e9f35661de695cb84fd580e8268f6b06b7c8b..9d6540d2d47d5b73050e56733aa7f1d9ec384589 100644 (file)
@@ -483,7 +483,7 @@ static GlobalObject *makeInternalReplacement(GlobalObject *GO) {
   GlobalObject *Ret;
   if (auto *F = dyn_cast<Function>(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");
 
     }