Open llvmbot opened 11 years ago
I agree it's likely rare, but it's used in Intel's Graphics driver.
Thanks for the full bug report. Tracked in rdar://problem/11630894.
I will note that this use case is fairly rare and so it's not a high priority right now. Sorry!
assigned to @tkremenek
Extended Description
Using the static analyzer from the checker-270 build for MacOSX on the following C++ source:
============================ void set_x(void *&);
int foo(void) { int *x = 0;
}
results in:
warning: Dereference of null pointer (loaded from variable 'x')
This doesn't happen if the "void" is replaced by "int".