Skip to content

Commit

Permalink
Turn off MSVC optimizations in StreamChecker.cpp on MSVC < 1941 (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger authored and radekdoulik committed Sep 19, 2024
1 parent 29b14ac commit 8bc1710
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
//
//===----------------------------------------------------------------------===//

// work around MSVC bug: https://developercommunity.visualstudio.com/t/C1001-triggered-by-StreamCheckercpp-of/10667148
#if defined(_MSC_VER) && (_MSC_VER < 1941)
#pragma optimize("", off)
#endif

#include "NoOwnershipChangeVisitor.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
Expand Down

0 comments on commit 8bc1710

Please sign in to comment.