================
@@ -1834,9 +1834,12 @@ class CodeCompleteFlow {
}
if (Opts.EnableInsertReplace) {
- ReplaceRange.emplace();
- ReplaceRange->start = InsertRange.start;
- ReplaceRange->end = getEndOfCodeCompletionReplace(SM);
----------------
argothiel wrote:
I think the same argument goes against `emplace()` followed by overwriting a
field. Let me initialize `Range` directly instead.
https://github.com/llvm/llvm-project/pull/225473
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits