[Lldb-commits] [lldb] d950157 - [lldb] Silence warning when building with latest MSVC
Alexandre Ganea via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 18 10:06:34 PST 2024
Author: Alexandre Ganea
Date: 2024-01-18T13:06:12-05:00
New Revision: d950157f7b290e35ce25647e255df9dccbcead2b
URL: https://github.com/llvm/llvm-project/commit/d950157f7b290e35ce25647e255df9dccbcead2b
DIFF: https://github.com/llvm/llvm-project/commit/d950157f7b290e35ce25647e255df9dccbcead2b.diff
LOG: [lldb] Silence warning when building with latest MSVC
Fixes:
```
C:\git\llvm-project\lldb\unittests\Core\DumpDataExtractorTest.cpp(140): warning C4305: 'argument': truncation from 'double' to 'const std::complex<float>::_Ty'
```
Added:
Modified:
lldb/unittests/Core/DumpDataExtractorTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Core/DumpDataExtractorTest.cpp b/lldb/unittests/Core/DumpDataExtractorTest.cpp
index 8c58fecfee29cb..3d1e8bc5e4623f 100644
--- a/lldb/unittests/Core/DumpDataExtractorTest.cpp
+++ b/lldb/unittests/Core/DumpDataExtractorTest.cpp
@@ -137,7 +137,7 @@ TEST_F(DumpDataExtractorTest, Formats) {
TestDump('?', lldb::eFormatChar, "'?'");
TestDump('\x1A', lldb::eFormatCharPrintable, ".");
TestDump('#', lldb::eFormatCharPrintable, "#");
- TestDump(std::complex<float>(1.2, 3.4), lldb::eFormatComplex, "1.2 + 3.4i");
+ TestDump(std::complex<float>(1.2f, 3.4f), lldb::eFormatComplex, "1.2 + 3.4i");
TestDump(std::complex<double>(4.5, 6.7), lldb::eFormatComplex, "4.5 + 6.7i");
// long double is not tested here because for some platforms we treat it as 10
More information about the lldb-commits
mailing list