diff options
| author | Ted Kremenek <kremenek@apple.com> | 2007-12-13 05:14:22 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2007-12-13 05:14:22 +0000 |
| commit | 3a742d280c5ed292bedc9cb62b530eb38c7d2093 (patch) | |
| tree | 6875a8c26380e6604cc0de20a6f75ae03c60cc98 /clang/Basic/SourceManager.cpp | |
| parent | 2fe0dd09b3346bcd18ee8a3009987bde777806f1 (diff) | |
| download | bcm5719-llvm-3a742d280c5ed292bedc9cb62b530eb38c7d2093.tar.gz bcm5719-llvm-3a742d280c5ed292bedc9cb62b530eb38c7d2093.zip | |
For uninitialized values analysis, added special treatment for declarations
of array types. For things like:
char x[10];
we should treat "x" as being initialized, because the variable "x" really
refers to the memory block of the array. Clearly x[1] is uninitialized, but
expressions like "(char*) x" really do refer to an initialized value. This
simple dataflow analysis does not reason about the contents of arrays.
This fixes: PR 1859 (http://llvm.org/bugs/show_bug.cgi?id=1859)
llvm-svn: 44984
Diffstat (limited to 'clang/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions

