summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-02-10 19:25:51 +0000
committerReid Kleckner <rnk@google.com>2016-02-10 19:25:51 +0000
commitcf5414ee11825f2dcc2916fd615fc070b47f7851 (patch)
treed2ee532d92ebb2de48994499efe5ff691016cd09
parent0a4f3f43731963534366592f7a9f29566a055716 (diff)
downloadbcm5719-llvm-cf5414ee11825f2dcc2916fd615fc070b47f7851.tar.gz
bcm5719-llvm-cf5414ee11825f2dcc2916fd615fc070b47f7851.zip
Disable MSVC 2015's warning about zero extending after ~ and others
Very often in LLVM we have APIs that take a bitwidth and a uint64_t that we pass immediates such as ~0U to. Consider APInt, Constant, and MachineInstrBuilder::addImm. Fixing all uses of these APIs to manually extend their arguments to uint64_t doesn't seem worth it. llvm-svn: 260416
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 1ec16e8b901..757042cbcdd 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -328,6 +328,7 @@ if( MSVC )
# C4592 is disabled because of false positives in Visual Studio 2015
# Update 1. Re-evaluate the usefulness of this diagnostic with Update 2.
-wd4592 # Suppress ''var': symbol will be dynamically initialized (implementation limitation)
+ -wd4319 # Suppress ''operator' : zero extending 'type' to 'type' of greater size'
# Ideally, we'd like this warning to be enabled, but MSVC 2013 doesn't
# support the 'aligned' attribute in the way that clang sources requires (for
@@ -336,7 +337,7 @@ if( MSVC )
# When we switch to requiring a version of MSVC that supports the 'alignas'
# specifier (MSVC 2015?) this warning can be re-enabled.
-wd4324 # Suppress 'structure was padded due to __declspec(align())'
-
+
# Promoted warnings.
-w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
OpenPOWER on IntegriCloud