[clang] 11dfb3c - Work around an ICE in MSVC; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 8 07:20:39 PST 2023
Author: Aaron Ballman
Date: 2023-12-08T10:20:31-05:00
New Revision: 11dfb3cb3237a081ad711b06f1e8efbc7fff7a81
URL: https://github.com/llvm/llvm-project/commit/11dfb3cb3237a081ad711b06f1e8efbc7fff7a81
DIFF: https://github.com/llvm/llvm-project/commit/11dfb3cb3237a081ad711b06f1e8efbc7fff7a81.diff
LOG: Work around an ICE in MSVC; NFC
Added:
Modified:
clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp b/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
index 7430ef599e032..baa099d2f3fcf 100644
--- a/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
+++ b/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
@@ -351,9 +351,10 @@ class HTMLLogger : public Logger {
if (Invalid)
return;
- static constexpr unsigned Missing = -1;
// TokenInfo stores the BB and set of elements that a token is part of.
struct TokenInfo {
+ enum { Missing = -1 };
+
// The basic block this is part of.
// This is the BB of the stmt with the smallest containing range.
unsigned BB = Missing;
More information about the cfe-commits
mailing list