projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42faffd
)
Copy the ThreadLocalMode in GlobalVariable::copyAttributesFrom
author
Hans Wennborg
<hans@hanshq.net>
Mon, 10 Feb 2014 17:13:56 +0000
(17:13 +0000)
committer
Hans Wennborg
<hans@hanshq.net>
Mon, 10 Feb 2014 17:13:56 +0000
(17:13 +0000)
This fixes the oversight from r159077.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201098
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Globals.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Globals.cpp
b/lib/IR/Globals.cpp
index cc42351f10095591787826ce58042843d75de7da..4d8b9cef544aa70096339b4a7d1536fd63fec05c 100644
(file)
--- a/
lib/IR/Globals.cpp
+++ b/
lib/IR/Globals.cpp
@@
-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
());
+ setThreadLocal
Mode(SrcVar->getThreadLocalMode
());
}