HomePhabricator

[Refactor] Speculative fix for assert in isBeforeInTranslationUnit()
8aa134fba3feUnpublished

Authored by jkorous on Mar 16 2020, 4:35 PM.

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[Refactor] Speculative fix for assert in isBeforeInTranslationUnit()

I don't have a reproducer but the failing assert is that
LHS.isValid() && RHS.isValid() in SourceManager::isBeforeInTranslationUnit()
which is called from ASTSlice constructor.

We might be hitting some implicit declarations.

rdar://problem/59811864

Details

Committed
jkorousApr 1 2020, 6:50 PM
Parents
rG7c1258ea4a12: Merge pull request #1008 from dcci/father-i-need-help
Branches
Unknown
Tags
Unknown