dblaikie added a subscriber: JDevlieghere. dblaikie added a comment. In D94391#2491229 <https://reviews.llvm.org/D94391#2491229>, @MaskRay wrote:
> In D94391#2491178 <https://reviews.llvm.org/D94391#2491178>, @dblaikie wrote: > >> Any particular bug you're trying to fix? (this looks like it changes the >> debug locations, so it would need tests) >> >> Not necessarily clear that these are better debug locations? > > No particular bug. `CGDebugInfo::getLineNumber` returning CurLoc just looks > strange. (The CurLoc may be far below (irrelevant) when getLineNumber is > called.) > > This patch is hopefully NFC. Dropping `CurLoc` from > `getLineNumber(RD->getLocation().isValid() ? RD->getLocation() : CurLoc)` > will cause a difference, which may reveal missing `SourceLocation` > information in ObjC constructs. Ah, OK. Yeah, I don't have strong feelings about this - a bit hesitant to make the change without a stronger motivation though. Perhaps other reviewers have some thoughts to contribute (also maybe @JDevlieghere ). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D94391/new/ https://reviews.llvm.org/D94391 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits