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 1660a41 commit cb9b9ecCopy full SHA for cb9b9ec
flang/lib/Optimizer/CodeGen/CodeGen.cpp
@@ -2999,7 +2999,10 @@ struct GlobalOpConversion : public fir::FIROpConversion<fir::GlobalOp> {
2999
if (auto gvExprAttr = mlir::dyn_cast_if_present<mlir::ArrayAttr>(
3000
fusedLoc.getMetadata())) {
3001
for (auto attr : gvExprAttr.getAsRange<mlir::Attribute>())
3002
- dbgExprs.push_back(attr);
+ if (auto dbgAttr =
3003
+ mlir::dyn_cast<mlir::LLVM::DIGlobalVariableExpressionAttr>(
3004
+ attr))
3005
+ dbgExprs.push_back(dbgAttr);
3006
}
3007
3008
0 commit comments