[llvm] r226949 - Fix the MSVC build with the new Orc JIT APIs
David Blaikie
dblaikie at gmail.com
Fri Jan 23 15:02:24 PST 2015
On Fri, Jan 23, 2015 at 3:01 PM, Reid Kleckner <rnk at google.com> wrote:
> On Fri, Jan 23, 2015 at 2:45 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>> - M.SectionsAllocatedSinceLastLoad = {};
>>> + M.SectionsAllocatedSinceLastLoad = SectionAddrSet{};
>>>
>>
>> MSVC supports braced init in this context/usage? Huh.
>>
>
> Only in variable declarations, and this is an assignment:
>
Actually I meant the form you changed it /to/. We haven't really seen much
braced init in LLVM, even for structs. I'd probably still use () there.
>
> [3/7] Building CXX object
> lib\ExecutionEngine\Orc\CMakeFiles\LLVMOrcJIT.dir\OrcMCJITReplacement.cpp.obj
> FAILED: C:\PROGRA~2\MICROS~4.0\VC\bin\cl.exe /nologo /TP /DWIN32
> /D_WINDOWS /W3 /MD /O2 /Ob2 -Ilib\ExecutionEngine\Orc
> -I..\lib\ExecutionEngine\Orc -Iinclude -I..\include -UNDEBUG -wd4146
> -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd4355 -wd4456
> -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4800 -w14062 -we4238
> /EHs-c- /GR- /showIncludes -DGTEST_HAS_RTTI=0 -D_CRT_NONSTDC_NO_DEPRECATE
> -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE
> -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE
> -D_SCL_SECURE_NO_WARNINGS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
> -D__STDC_LIMIT_MACROS
> /Folib\ExecutionEngine\Orc\CMakeFiles\LLVMOrcJIT.dir\OrcMCJITReplacement.cpp.obj
> /Fdlib\ExecutionEngine\Orc\CMakeFiles\LLVMOrcJIT.dir/ /FS -c
> ..\lib\ExecutionEngine\Orc\OrcMCJITReplacement.cpp
> d:\src\llvm\lib\executionengine\orc\OrcMCJITReplacement.h(261) : error
> C2593: 'operator =' is ambiguous
> C:/PROGRA~2/MICROS~4.0/VC/include\set(180): could be
> 'std::set<const void *,std::less<_Kty>,std::allocator<_Kty>>
> &std::set<_Kty,std::less<_Kty>,std::allocator<_Kty>>::operator
> =(std::initializer_list<const void *>)'
> with
> [
> _Kty=const void *
> ]
> C:/PROGRA~2/MICROS~4.0/VC/include\set(139): or
> 'std::set<const void *,std::less<_Kty>,std::allocator<_Kty>>
> &std::set<_Kty,std::less<_Kty>,std::allocator<_Kty>>::operator
> =(std::set<_Kty,std::less<_Kty>,std::allocator<_Kty>> &&)'
> with
> [
> _Kty=const void *
> ]
> C:/PROGRA~2/MICROS~4.0/VC/include\set(123): or
> 'std::set<const void *,std::less<_Kty>,std::allocator<_Kty>>
> &std::set<_Kty,std::less<_Kty>,std::allocator<_Kty>>::operator =(const
> std::set<_Kty,std::less<_Kty>,std::allocator<_Kty>> &)'
> with
> [
> _Kty=const void *
> ]
> while trying to match the argument list
> '(llvm::OrcMCJITReplacement::SectionAddrSet, initializer-list)'
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/e0c1abef/attachment.html>
More information about the llvm-commits
mailing list