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 e5d686b commit 2c79974Copy full SHA for 2c79974
clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp
@@ -390,7 +390,7 @@ void CIRGenFunction::emitNewArrayInitializer(
390
391
// If all elements have already been initialized, skip any further
392
// initialization.
393
- auto constOp = dyn_cast<cir::ConstantOp>(numElements.getDefiningOp());
+ auto constOp = mlir::dyn_cast<cir::ConstantOp>(numElements.getDefiningOp());
394
if (constOp) {
395
auto constIntAttr = mlir::dyn_cast<cir::IntAttr>(constOp.getValue());
396
// Just skip out if the constant count is zero.
0 commit comments