Skip to content

Commit ac0e8c3

Browse files
committed
Address new comments
1 parent e069e0e commit ac0e8c3

File tree

3 files changed

+286
-114
lines changed

3 files changed

+286
-114
lines changed

clang/include/clang/CIR/MissingFeatures.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ struct MissingFeatures {
109109
static bool metaDataNode() { return false; }
110110
static bool fastMathFlags() { return false; }
111111
static bool emitCheckedInBoundsGEP() { return false; }
112+
static bool preservedAccessIndexRegion() { return false; }
112113

113114
// Missing types
114115
static bool dataMemberType() { return false; }

clang/lib/CIR/CodeGen/CIRGenExpr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ static Address emitArraySubscriptPtr(CIRGenFunction &cgf,
315315
mlir::Value eltPtr;
316316
const mlir::IntegerAttr index = getConstantIndexOrNull(idx);
317317
if (!index) {
318+
assert(!cir::MissingFeatures::preservedAccessIndexRegion());
318319
eltPtr = emitArraySubscriptPtr(cgf, beginLoc, endLoc, addr.getPointer(),
319320
addr.getElementType(), idx, inbounds,
320321
shouldDecay);

0 commit comments

Comments
 (0)