[llvm] r221050 - Remove redundant calls to isMaterializable.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sat Nov 1 17:05:24 PDT 2014


>> --- llvm/trunk/tools/gold/gold-plugin.cpp (original)
>> +++ llvm/trunk/tools/gold/gold-plugin.cpp Sat Nov  1 11:46:18 2014
>> @@ -471,10 +471,8 @@ static GlobalObject *makeInternalReplace
>>     Module *M = GO->getParent();
>>     GlobalObject *Ret;
>>     if (auto *F = dyn_cast<Function>(GO)) {
>> -    if (F->isMaterializable()) {
>> -      if (F->materialize())
>> -        message(LDPL_FATAL, "LLVM gold plugin has failed to read a
>> function");
>> -
>> +    if (F->materialize())
>> +      message(LDPL_FATAL, "LLVM gold plugin has failed to read a
>> function");
>>       }
>
>
> This part introduces a build failure in the gold plugin. Seems like you
> forgot to remove closing brace for the removed if statement.

Should be fixed now. Really sorry about it.

Cheers,
Rafael



More information about the llvm-commits mailing list