Fix the build of the gold plugin.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 1 Nov 2014 23:49:44 +0000 (23:49 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 1 Nov 2014 23:49:44 +0000 (23:49 +0000)
I did the previous patch on OS X and didn't noticed the issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221070 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index 87d7a4fa0ad5d9d3bc85144a34a10444c0df802a..9905d489b55c780b7124ca1b5e97743a119f8da4 100644 (file)
@@ -473,7 +473,6 @@ static GlobalObject *makeInternalReplacement(GlobalObject *GO) {
   if (auto *F = dyn_cast<Function>(GO)) {
     if (F->materialize())
       message(LDPL_FATAL, "LLVM gold plugin has failed to read a function");
-    }
 
     auto *NewF = Function::Create(F->getFunctionType(), F->getLinkage(),
                                   F->getName(), M);