Skip to content

Commit 77b31ff

Browse files
committed
spelling: error
Signed-off-by: Josh Soref <[email protected]>
1 parent ce183b5 commit 77b31ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/swift-syntax-test/swift-syntax-test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,13 @@ bool parseIncrementalEditArguments(SyntaxParsingCache *Cache,
360360
StringRef OldFileName) {
361361
// Get a source manager for the old file
362362
InputFile OldFile = InputFile(OldFileName, true);
363-
auto OldFileBufferOrErrror = llvm::MemoryBuffer::getFileOrSTDIN(OldFileName);
364-
if (!OldFileBufferOrErrror) {
363+
auto OldFileBufferOrError = llvm::MemoryBuffer::getFileOrSTDIN(OldFileName);
364+
if (!OldFileBufferOrError) {
365365
llvm::errs() << "Unable to open old source file";
366366
return false;
367367
}
368368
SourceManager SourceMgr;
369-
unsigned BufferID = SourceMgr.addNewSourceBuffer(std::move(OldFileBufferOrErrror.get()));
369+
unsigned BufferID = SourceMgr.addNewSourceBuffer(std::move(OldFileBufferOrError.get()));
370370

371371
llvm::Regex MatchRegex("([0-9]+):([0-9]+)-([0-9]+):([0-9]+)=(.*)");
372372
// Parse the source edits

0 commit comments

Comments
 (0)