Skip to content

Commit

Permalink
[Lex] Fix -Wunused-variable for LLVM_ENABLE_ASSERTIONS=off builds aft…
Browse files Browse the repository at this point in the history
…er D140179
  • Loading branch information
MaskRay committed Feb 8, 2023
1 parent f8ea2f6 commit 8529b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Lex/Preprocessor.cpp
Expand Up @@ -1497,7 +1497,7 @@ bool Preprocessor::enterOrExitSafeBufferOptOutRegion(
// To set the start location of a new region:

if (!SafeBufferOptOutMap.empty()) {
auto *PrevRegion = &SafeBufferOptOutMap.back();
[[maybe_unused]] auto *PrevRegion = &SafeBufferOptOutMap.back();
assert(PrevRegion->first != PrevRegion->second &&
"Shall not begin a safe buffer opt-out region before closing the "
"previous one.");
Expand Down

0 comments on commit 8529b38

Please sign in to comment.