Commit 5002c48
[lldb-dap] Mitigate a build error on Windows. (llvm#137388)
When building with MSVC 2019 using `std::future<llvm::Error>` causes a
compile time build error.
```
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\future(196): error C2248: 'llvm::Error::Error': cannot access protected member declared in class 'llvm::Error'
C:\work\main\llvm-project\llvm\include\llvm/Support/Error.h(181): note: see declaration of 'llvm::Error::Error'
C:\work\main\llvm-project\llvm\include\llvm/Support/FormatVariadicDetails.h(20): note: see declaration of 'llvm::Error'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\future(193): note: while compiling class template member function 'std::_Associated_state<_Ty>::_Associated_state(std::_Deleter_base<_Ty> *)'
with
[
_Ty=llvm::Error
]
C:\work\main\llvm-project\lldb\tools\lldb-dap\DAP.cpp(854): note: see reference to class template instantiation 'std::future<llvm::Error>' being compiled
```
To work around this, swapping to a lldb::SBError for now.1 parent 1010812 commit 5002c48
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
851 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
852 | 854 | | |
853 | 855 | | |
854 | 856 | | |
| |||
870 | 872 | | |
871 | 873 | | |
872 | 874 | | |
873 | | - | |
874 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
875 | 880 | | |
876 | 881 | | |
877 | 882 | | |
| |||
909 | 914 | | |
910 | 915 | | |
911 | 916 | | |
912 | | - | |
| 917 | + | |
913 | 918 | | |
914 | 919 | | |
915 | 920 | | |
| |||
933 | 938 | | |
934 | 939 | | |
935 | 940 | | |
936 | | - | |
| 941 | + | |
937 | 942 | | |
938 | 943 | | |
939 | 944 | | |
| |||
0 commit comments