aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2023-12-08 10:19:36 -0500
committerAaron Ballman <aaron@aaronballman.com>2023-12-08 10:20:31 -0500
commit11dfb3cb3237a081ad711b06f1e8efbc7fff7a81 (patch)
tree2c3f1367dad28f305e2cc92f50b0f074df01224f
parent23dc248ef02366ab33d3c2f99936ed75b1505b24 (diff)
downloadllvm-11dfb3cb3237a081ad711b06f1e8efbc7fff7a81.zip
llvm-11dfb3cb3237a081ad711b06f1e8efbc7fff7a81.tar.gz
llvm-11dfb3cb3237a081ad711b06f1e8efbc7fff7a81.tar.bz2
Work around an ICE in MSVC; NFC
-rw-r--r--clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp b/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
index 7430ef5..baa099d 100644
--- a/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
+++ b/clang/lib/Analysis/FlowSensitive/HTMLLogger.cpp
@@ -351,9 +351,10 @@ private:
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;