Skip to content

Commit f9024d3

Browse files
committed
Revert "[clang] Fix -Wuninitialized for values passed by const pointers (llvm#147221)"
This reverts commit ad9a953.
1 parent 5683cab commit f9024d3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/test/SemaCXX/uninitialized.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ void test_const_ptr() {
185185
const int *ptr2;
186186
foo(ptr); // expected-warning {{variable 'ptr' is uninitialized when used here}}
187187
foobar(&ptr2);
188-
int *ptr3; // expected-note {{initialize the variable 'ptr3' to silence this warning}}
189-
const int *ptr4; // expected-note {{initialize the variable 'ptr4' to silence this warning}}
190-
bar(ptr3); // expected-warning {{variable 'ptr3' is uninitialized when used here}}
191-
bar(ptr4); // expected-warning {{variable 'ptr4' is uninitialized when used here}}
192188
}
193189
}
194190

0 commit comments

Comments
 (0)