diff options
| author | Lenny Maiorani <lenny@colorado.edu> | 2011-04-27 14:49:29 +0000 |
|---|---|---|
| committer | Lenny Maiorani <lenny@colorado.edu> | 2011-04-27 14:49:29 +0000 |
| commit | 005b5c1aee6bc44412dfbb06685d23d0967522f7 (patch) | |
| tree | 7a574ef20cf50e5a3de55d597530146af2a2794b /clang/lib/AST/ASTContext.cpp | |
| parent | 085ad3b81abb71cf80cce2d6e3f3ca81b3bd31b8 (diff) | |
| download | bcm5719-llvm-005b5c1aee6bc44412dfbb06685d23d0967522f7.tar.gz bcm5719-llvm-005b5c1aee6bc44412dfbb06685d23d0967522f7.zip | |
More accurately model realloc() when the size argument is 0. realloc() with a size of 0 is equivalent to free(). The memory region should be marked as free and not used again.
Unit tests f2_realloc_0(), f6_realloc(), and f7_realloc() contributed by Marshall Clow <mclow.lists@gmail.com>. Thanks!
llvm-svn: 130303
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
0 files changed, 0 insertions, 0 deletions

