[llvm] r201098 - Copy the ThreadLocalMode in GlobalVariable::copyAttributesFrom
Hans Wennborg
hans at hanshq.net
Mon Feb 10 09:13:56 PST 2014
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());
}
More information about the llvm-commits
mailing list