Skip to content

Commit 2d4b6ca

Browse files
committed
Use the appropriate source manager for adjusting a range
1 parent a75b64e commit 2d4b6ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IDETool/CompileInstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ void retypeCheckFunctionBody(AbstractFunctionDecl *func,
195195
GeneratedSourceInfo::ReplacedFunctionBody,
196196
Lexer::getCharSourceRangeFromSourceRange(
197197
origSM, func->getOriginalBodySourceRange()),
198-
Lexer::getCharSourceRangeFromSourceRange(newSM, newRange),
198+
Lexer::getCharSourceRangeFromSourceRange(origSM, newRange),
199199
func,
200200
nullptr
201201
}

0 commit comments

Comments
 (0)