diff options
author | Stefan Gränitz <stefan.graenitz@gmail.com> | 2021-03-02 15:34:09 +0100 |
---|---|---|
committer | Stefan Gränitz <stefan.graenitz@gmail.com> | 2021-03-02 15:34:36 +0100 |
commit | a747e35c3ec371fce1f36424986b6b40ee2f25a9 (patch) | |
tree | 61e5da3a6a4fdef9a1bc941a7a14822780ec5e32 /llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp | |
parent | bcc9b371e43be8fa3fba65f2363eaf767731e0c7 (diff) | |
download | llvm-a747e35c3ec371fce1f36424986b6b40ee2f25a9.zip llvm-a747e35c3ec371fce1f36424986b6b40ee2f25a9.tar.gz llvm-a747e35c3ec371fce1f36424986b6b40ee2f25a9.tar.bz2 |
[Orc] Fix MSVC error: conversion from 'initializer list' requires a narrowing
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp b/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp index dc1778d..62954aa 100644 --- a/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp +++ b/llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp @@ -292,7 +292,11 @@ ELFDebugObject::finalizeWorkingMemory(JITLinkContext &Ctx) { size_t Size = Buffer->getBufferSize(); // Allocate working memory for debug object in read-only segment. - auto AllocOrErr = MemMgr.allocate(JD, {{ReadOnly, {Alignment, Size, 0}}}); + JITLinkMemoryManager::SegmentsRequestMap SingleReadOnlySegment; + SingleReadOnlySegment[ReadOnly] = + JITLinkMemoryManager::SegmentRequest(Alignment, Size, 0); + + auto AllocOrErr = MemMgr.allocate(JD, SingleReadOnlySegment); if (!AllocOrErr) return AllocOrErr.takeError(); |