Remove unused variable.
[oota-llvm.git] / 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");
 
     }