[PATCH] D159163: [analyzer][NFC] Workaround miscompilation on recent MSVC

Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 30 02:15:47 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5b3f41c55d92: [analyzer][NFC] Workaround miscompilation on recent MSVC (authored by dingfei <fding at feysh.com>).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159163/new/

https://reviews.llvm.org/D159163

Files:
  clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp


Index: clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp
===================================================================
--- clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp
+++ clang/lib/StaticAnalyzer/Core/ConstraintManager.cpp
@@ -91,7 +91,7 @@
 
 ConstraintManager::ProgramStatePair
 ConstraintManager::assumeDual(ProgramStateRef State, DefinedSVal Cond) {
-  auto AssumeFun = [&](bool Assumption) {
+  auto AssumeFun = [&, Cond](bool Assumption) {
     return assumeInternal(State, Cond, Assumption);
   };
   return assumeDualImpl(State, AssumeFun);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159163.554637.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230830/8032952f/attachment-0001.bin>


More information about the cfe-commits mailing list