llvm.org GIT mirror llvm / 87f08b7
[LLVM][Alignment] Fix MSVC potential division by 0 warning (PR42911) Original Patch by @gchatelet (Guillaume Chatelet) Differential Revision: https://reviews.llvm.org/D65859 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369016 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim a month ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
99 #include "gtest/gtest.h"
1010
1111 #include
12
13 #ifdef _MSC_VER
14 // Disable warnings about potential divide by 0.
15 #pragma warning(push)
16 #pragma warning(disable : 4723)
17 #endif
1218
1319 using namespace llvm;
1420
297303 #endif // NDEBUG
298304
299305 } // end anonymous namespace
306
307 #ifdef _MSC_VER
308 #pragma warning(pop)
309 #endif