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 630f43a commit f8e9b89Copy full SHA for f8e9b89
clang/lib/CodeGen/CGBuiltin.cpp
@@ -1213,7 +1213,7 @@ llvm::Value *CodeGenFunction::emitCountedByPointerSize(
1213
if (ElementSize.isZero()) {
1214
// This might be a __sized_by (or __counted_by) on a
1215
// 'void *', which counts bytes, not elements.
1216
- auto *CAT = ElementTy->getAs<CountAttributedType>();
+ [[maybe_unused]] auto *CAT = ElementTy->getAs<CountAttributedType>();
1217
assert(CAT && "must have an CountAttributedType");
1218
1219
ElementSize = CharUnits::One();
0 commit comments