diff options
| author | Ben Langmuir <blangmuir@apple.com> | 2014-05-19 16:13:45 +0000 |
|---|---|---|
| committer | Ben Langmuir <blangmuir@apple.com> | 2014-05-19 16:13:45 +0000 |
| commit | 735d818c01a5e1c96a8c30c13993c939b816f42c (patch) | |
| tree | e689896adb057a995e6e944a19e2c3d0923fd93e /lib/CodeGen/CGExpr.cpp | |
| parent | 76790c5cf0edc160c8dadc31ff8d6d439dc8ece1 (diff) | |
| download | clang-735d818c01a5e1c96a8c30c13993c939b816f42c.tar.gz clang-735d818c01a5e1c96a8c30c13993c939b816f42c.tar.bz2 clang-735d818c01a5e1c96a8c30c13993c939b816f42c.tar.xz | |
Fix use-after-free and spurious error during module load
FileManager::invalidateCache is not safe to call when there may be
existing references to the file. What module load failure needs is
to refresh so stale stat() info isn't stored.
This may be the last user of invalidateCache; I'll take a look and
remove it if possible in a future commit.
This caused a use-after-free error as well as a spurious error message
that a module was "found in both 'X.pcm' and 'X.pcm'" in some cases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
