forked from OSchip/llvm-project
Fold assertion into condition, as it does not hold all the time.
llvm-svn: 103716
This commit is contained in:
parent
484c6fc825
commit
d321413e3d
|
@ -2489,10 +2489,9 @@ AnnotateTokensWorker::Visit(CXCursor cursor, CXCursor parent) {
|
|||
if (TypeSourceInfo *TI = DD->getTypeSourceInfo()) {
|
||||
TypeLoc TL = TI->getTypeLoc();
|
||||
SourceLocation TLoc = TL.getFullSourceRange().getBegin();
|
||||
if (TLoc.isValid()) {
|
||||
assert(SrcMgr.isBeforeInTranslationUnit(TLoc, L));
|
||||
if (TLoc.isValid() &&
|
||||
SrcMgr.isBeforeInTranslationUnit(TLoc, L))
|
||||
cursorRange.setBegin(TLoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue