Skip to content

Commit 2c79974

Browse files
Update clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp
Co-authored-by: Andy Kaylor <[email protected]>
1 parent e5d686b commit 2c79974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenExprCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ void CIRGenFunction::emitNewArrayInitializer(
390390

391391
// If all elements have already been initialized, skip any further
392392
// initialization.
393-
auto constOp = dyn_cast<cir::ConstantOp>(numElements.getDefiningOp());
393+
auto constOp = mlir::dyn_cast<cir::ConstantOp>(numElements.getDefiningOp());
394394
if (constOp) {
395395
auto constIntAttr = mlir::dyn_cast<cir::IntAttr>(constOp.getValue());
396396
// Just skip out if the constant count is zero.

0 commit comments

Comments
 (0)