[llvm] d76fddf - [cmake][msvc] Don't disable C4345 any more.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 28 06:04:52 PST 2020


Author: Simon Pilgrim
Date: 2020-02-28T13:57:20Z
New Revision: d76fddf2f17abe2ea387ff6fa84a513814bbab41

URL: https://github.com/llvm/llvm-project/commit/d76fddf2f17abe2ea387ff6fa84a513814bbab41
DIFF: https://github.com/llvm/llvm-project/commit/d76fddf2f17abe2ea387ff6fa84a513814bbab41.diff

LOG: [cmake][msvc] Don't disable C4345 any more.

This shouldn't be relevant now that we just support VS2017+.

Added: 
    

Modified: 
    llvm/cmake/modules/HandleLLVMOptions.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 4868a85a12a1..b91523736a3e 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -499,7 +499,6 @@ if (MSVC)
       -wd4244 # Suppress ''argument' : conversion from 'type1' to 'type2', possible loss of data'
       -wd4267 # Suppress ''var' : conversion from 'size_t' to 'type', possible loss of data'
       -wd4291 # Suppress ''declaration' : no matching operator delete found; memory will not be freed if initialization throws an exception'
-      -wd4345 # Suppress 'behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized'
       -wd4351 # Suppress 'new behavior: elements of array 'array' will be default initialized'
       -wd4456 # Suppress 'declaration of 'var' hides local variable'
       -wd4457 # Suppress 'declaration of 'var' hides function parameter'


        


More information about the llvm-commits mailing list