Skip to content

Commit f8b7506

Browse files
committed
[clang][NFC] Move a variable into the closest scope
AllocType is not used anywhere else.
1 parent 1217a54 commit f8b7506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6867,8 +6867,8 @@ static std::optional<DynAlloc *> CheckDeleteKind(EvalInfo &Info, const Expr *E,
68676867
return std::nullopt;
68686868
}
68696869

6870-
QualType AllocType = Pointer.Base.getDynamicAllocType();
68716870
if (DeallocKind != (*Alloc)->getKind()) {
6871+
QualType AllocType = Pointer.Base.getDynamicAllocType();
68726872
Info.FFDiag(E, diag::note_constexpr_new_delete_mismatch)
68736873
<< DeallocKind << (*Alloc)->getKind() << AllocType;
68746874
NoteLValueLocation(Info, Pointer.Base);

0 commit comments

Comments
 (0)