Skip to content

Commit

Permalink
[Sema] Fix -Wunused-variable in SemaType.cpp (NFC)
Browse files Browse the repository at this point in the history
/llvm-project/clang/lib/Sema/SemaType.cpp:7625:8:
error: unused variable 'Success' [-Werror,-Wunused-variable]
  bool Success = FX.insert(NewEC, Errs);
       ^
1 error generated.
  • Loading branch information
DamonFool committed Jun 24, 2024
1 parent 284fbf9 commit efab4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7622,7 +7622,7 @@ handleNonBlockingNonAllocatingTypeAttr(TypeProcessingState &TPState,
FunctionProtoType::ExtProtoInfo EPI = FPT->getExtProtoInfo();
FunctionEffectSet FX(EPI.FunctionEffects);
FunctionEffectSet::Conflicts Errs;
bool Success = FX.insert(NewEC, Errs);
[[maybe_unused]] bool Success = FX.insert(NewEC, Errs);
assert(Success && "effect conflicts should have been diagnosed above");
EPI.FunctionEffects = FunctionEffectsRef(FX);

Expand Down

0 comments on commit efab4a3

Please sign in to comment.