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


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to