We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e2467 commit 14ab888Copy full SHA for 14ab888
llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
@@ -607,8 +607,7 @@ bool SPIRVEmitIntrinsics::walkLogicalAccessChain(
607
const std::function<void(Type *, uint64_t)> &OnLiteralIndexing,
608
const std::function<void(Type *, Value *)> &OnDynamicIndexing) {
609
// We only rewrite i8* GEP. Other should be left as-is.
610
- // Observation so-far is i8* GEP always have a single index. Making sure
611
- // that's the case.
+ // Valid i8* GEP must always have a single index.
612
assert(GEP.getSourceElementType() ==
613
IntegerType::getInt8Ty(CurrF->getContext()));
614
assert(GEP.getNumIndices() == 1);
0 commit comments