Fixed assertion
authorShaurya Gupta <shauryab98@gmail.com>
Tue, 9 Jul 2019 10:30:18 +0000 (10:30 +0000)
committerShaurya Gupta <shauryab98@gmail.com>
Tue, 9 Jul 2019 10:30:18 +0000 (10:30 +0000)
llvm-svn: 365460

clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp

index 8da62a3..18f71fa 100644 (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(),