[flang-commits] [flang] [flang] Enhance location information (PR #95862)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Wed Jul 17 10:01:00 PDT 2024
================
@@ -76,7 +76,7 @@ static uint32_t getLineFromLoc(mlir::Location loc) {
}
bool debugInfoIsAlreadySet(mlir::Location loc) {
- if (mlir::isa<mlir::FusedLoc>(loc))
+ if (l->findInstanceOf<mlir::FusedLocWith<mlir::LLVM::DISubprogramAttr>>())
----------------
clementval wrote:
```suggestion
if (loc->findInstanceOf<mlir::FusedLocWith<mlir::LLVM::DISubprogramAttr>>())
```
https://github.com/llvm/llvm-project/pull/95862
More information about the flang-commits
mailing list