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.

llvm-svn: 221070

llvm/tools/gold/gold-plugin.cpp

index 87d7a4f..9905d48 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);