Fixed assertion

llvm-svn: 365460
This commit is contained in:
Shaurya Gupta 2019-07-09 10:30:18 +00:00
parent e5b868d6a3
commit cc0203e06d
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ tooling::Replacement
ExtractionContext::insertDeclaration(llvm::StringRef VarName) const {
const llvm::Optional<SourceRange> ExtractionRng =
toHalfOpenFileRange(SM, Ctx.getLangOpts(), getExpr()->getSourceRange());
assert(ExractionRng && "ExtractionRng should not be null");
assert(ExtractionRng && "ExtractionRng should not be null");
llvm::StringRef ExtractionCode = toSourceCode(SM, *ExtractionRng);
const SourceLocation InsertionLoc =
toHalfOpenFileRange(SM, Ctx.getLangOpts(),