Skip to content

Commit ba3dcec

Browse files
committed
Revert "[clang][Interp] Fix a build failure on Windows"
This reverts commit 27f5c00.
1 parent a8687dd commit ba3dcec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/Interp/Interp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ bool CheckNewDeleteForms(InterpState &S, CodePtr OpPC, bool NewWasArray,
715715
if (D->isArray()) {
716716
QualType ElemQT = D->getType()->getPointeeType();
717717
TypeToDiagnose = S.getCtx().getConstantArrayType(
718-
ElemQT, APInt(64, static_cast<uint64_t>(D->getNumElems()), false),
719-
nullptr, ArraySizeModifier::Normal, 0);
718+
ElemQT, APInt(64, D->getNumElems(), false), nullptr,
719+
ArraySizeModifier::Normal, 0);
720720
} else
721721
TypeToDiagnose = D->getType()->getPointeeType();
722722

0 commit comments

Comments
 (0)