mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Copy the ThreadLocalMode in GlobalVariable::copyAttributesFrom
This fixes the oversight from r159077. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
42faffddb9
commit
1c4554854d
@ -184,7 +184,7 @@ void GlobalVariable::copyAttributesFrom(const GlobalValue *Src) {
|
||||
assert(isa<GlobalVariable>(Src) && "Expected a GlobalVariable!");
|
||||
GlobalValue::copyAttributesFrom(Src);
|
||||
const GlobalVariable *SrcVar = cast<GlobalVariable>(Src);
|
||||
setThreadLocal(SrcVar->isThreadLocal());
|
||||
setThreadLocalMode(SrcVar->getThreadLocalMode());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user