diff --git a/clang/lib/AST/Interp/Pointer.cpp b/clang/lib/AST/Interp/Pointer.cpp index d68af7922af5a..8a0a15547b0f2 100644 --- a/clang/lib/AST/Interp/Pointer.cpp +++ b/clang/lib/AST/Interp/Pointer.cpp @@ -87,7 +87,7 @@ APValue Pointer::toAPValue() const { if (isZero()) return APValue(static_cast(nullptr), CharUnits::Zero(), Path, - false, /*IsNullPtr=*/false); + /*IsOnePastEnd=*/false, /*IsNullPtr=*/true); // Build the lvalue base from the block. const Descriptor *Desc = getDeclDesc(); @@ -100,7 +100,8 @@ APValue Pointer::toAPValue() const { llvm_unreachable("Invalid allocation type"); if (isDummy() || isUnknownSizeArray() || Desc->asExpr()) - return APValue(Base, CharUnits::Zero(), Path, false, false); + return APValue(Base, CharUnits::Zero(), Path, + /*IsOnePastEnd=*/false, /*IsNullPtr=*/false); // TODO: compute the offset into the object. CharUnits Offset = CharUnits::Zero();