File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,8 @@ class DefaultArgStorage {
377
377
InheritedFrom = getParmOwningDefaultArg (InheritedFrom);
378
378
if (!isSet ())
379
379
ValueOrInherited = InheritedFrom;
380
- else if (auto *D = ValueOrInherited.template dyn_cast <ParmDecl *>()) {
380
+ else if ([[maybe_unused]] auto *D =
381
+ ValueOrInherited.template dyn_cast <ParmDecl *>()) {
381
382
assert (C.isSameDefaultTemplateArgument (D, InheritedFrom));
382
383
ValueOrInherited =
383
384
new (allocateDefaultArgStorageChain (C)) Chain{InheritedFrom, get ()};
Original file line number Diff line number Diff line change @@ -1670,7 +1670,7 @@ template <class Emitter>
1670
1670
std::optional<unsigned >
1671
1671
ByteCodeExprGen<Emitter>::allocateLocal(DeclTy &&Src, bool IsExtended) {
1672
1672
// Make sure we don't accidentally register the same decl twice.
1673
- if (const auto *VD =
1673
+ if ([[maybe_unused]] const auto *VD =
1674
1674
dyn_cast_if_present<ValueDecl>(Src.dyn_cast <const Decl *>())) {
1675
1675
assert (!P.getGlobal (VD));
1676
1676
assert (!Locals.contains (VD));
You can’t perform that action at this time.
0 commit comments