Skip to content

Commit d14923d

Browse files
committed
fix
1 parent edc0413 commit d14923d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/test/clang-tidy/checkers/bugprone/taxi-async-use-after-free.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void f_use_after_free() {
3939
void f_ref() {
4040
int xx = 1;
4141
std::vector<int> v;
42-
int &x = x;
42+
int &x = xx;
4343

4444
v.push_back(engine::Async([&x]{ x = 2;}));
4545
}

0 commit comments

Comments
 (0)