File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1610,10 +1610,9 @@ void LoweringPreparePass::runOnOperation() {
1610
1610
buildCXXGlobalInitFunc ();
1611
1611
buildGlobalCtorDtorList ();
1612
1612
buildGlobalAnnotationValues ();
1613
-
1614
- if (theModule && theModule->hasAttr (" cir.global_annotations" )) {
1613
+
1614
+ if (theModule && theModule->hasAttr (" cir.global_annotations" ))
1615
1615
theModule->removeAttr (" cir.global_annotations" );
1616
- }
1617
1616
}
1618
1617
1619
1618
std::unique_ptr<Pass> mlir::createLoweringPreparePass () {
Original file line number Diff line number Diff line change @@ -2191,9 +2191,8 @@ mlir::LogicalResult CIRToLLVMFuncOpLowering::matchAndRewrite(
2191
2191
mlir::ConversionPatternRewriter &rewriter) const {
2192
2192
2193
2193
mlir::ModuleOp module = op->getParentOfType <mlir::ModuleOp>();
2194
- if (module ->hasAttr (" cir.global_annotations" )) {
2194
+ if (module ->hasAttr (" cir.global_annotations" ))
2195
2195
op->removeAttr (" annotations" );
2196
- }
2197
2196
2198
2197
auto fnType = op.getFunctionType ();
2199
2198
auto isDsoLocal = op.getDsoLocal ();
You can’t perform that action at this time.
0 commit comments