mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Wrap a few functions from LLVM SourceMgr in preparation of making
SourceLoc::Value private Swift SVN r7114
This commit is contained in:
@@ -875,8 +875,8 @@ namespace {
|
||||
|
||||
bool isGoodSourceRange(SourceRange SR) {
|
||||
return SR.isValid() &&
|
||||
Ctx.SourceMgr->FindBufferContainingLoc(SR.Start.Value) != -1 &&
|
||||
Ctx.SourceMgr->FindBufferContainingLoc(SR.End.Value) != -1;
|
||||
Ctx.SourceMgr.findBufferContainingLoc(SR.Start) != -1 &&
|
||||
Ctx.SourceMgr.findBufferContainingLoc(SR.End) != -1;
|
||||
}
|
||||
|
||||
void checkSourceRanges(FuncExpr *FE) {
|
||||
|
||||
Reference in New Issue
Block a user