summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-12-19 20:41:59 -0800
committerLang Hames <lhames@gmail.com>2019-12-19 20:41:59 -0800
commitd9220b580b323d6b3b9f6a57c163439fad5b2bde (patch)
tree3c2a6d8538d787c8092645febb6f72c8455c07c3 /llvm/lib/ExecutionEngine
parentde21704ba96fa80d3e9402f12c6505917a3885f4 (diff)
downloadbcm5719-llvm-d9220b580b323d6b3b9f6a57c163439fad5b2bde.tar.gz
bcm5719-llvm-d9220b580b323d6b3b9f6a57c163439fad5b2bde.zip
[JITLink][MachO] Fix common symbol size plumbing.
This fixes the underlying bug that was exposed by 298e183e813.
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp b/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
index 1881bd0b287..701f108a9a2 100644
--- a/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
@@ -313,7 +313,7 @@ Error MachOLinkGraphBuilder::graphifyRegularSymbols() {
return make_error<JITLinkError>("Anonymous common symbol at index " +
Twine(KV.first));
NSym.GraphSymbol = &G->addCommonSymbol(
- *NSym.Name, NSym.S, getCommonSection(), NSym.Value, 0,
+ *NSym.Name, NSym.S, getCommonSection(), 0, NSym.Value,
1ull << MachO::GET_COMM_ALIGN(NSym.Desc),
NSym.Desc & MachO::N_NO_DEAD_STRIP);
} else {
OpenPOWER on IntegriCloud