[llvm] r201098 - Copy the ThreadLocalMode in GlobalVariable::copyAttributesFrom

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Feb 10 11:17:05 PST 2014


Thanks!

On 10 February 2014 12:13, Hans Wennborg <hans at hanshq.net> wrote:
> Author: hans
> Date: Mon Feb 10 11:13:56 2014
> New Revision: 201098
>
> URL: http://llvm.org/viewvc/llvm-project?rev=201098&view=rev
> Log:
> Copy the ThreadLocalMode in GlobalVariable::copyAttributesFrom
>
> This fixes the oversight from r159077.
>
> Modified:
>     llvm/trunk/lib/IR/Globals.cpp
>
> Modified: llvm/trunk/lib/IR/Globals.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Globals.cpp?rev=201098&r1=201097&r2=201098&view=diff
> ==============================================================================
> --- llvm/trunk/lib/IR/Globals.cpp (original)
> +++ llvm/trunk/lib/IR/Globals.cpp Mon Feb 10 11:13:56 2014
> @@ -184,7 +184,7 @@ void GlobalVariable::copyAttributesFrom(
>    assert(isa<GlobalVariable>(Src) && "Expected a GlobalVariable!");
>    GlobalValue::copyAttributesFrom(Src);
>    const GlobalVariable *SrcVar = cast<GlobalVariable>(Src);
> -  setThreadLocal(SrcVar->isThreadLocal());
> +  setThreadLocalMode(SrcVar->getThreadLocalMode());
>  }
>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list