summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-06 05:43:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-06 05:43:36 +0000
commit7cea5f1747045a5d52387920560937b8b30b2171 (patch)
treec42d9d27e3ebdf66fa89f11d4862824ad10c23b1 /clang/lib/CodeGen/CodeGenModule.cpp
parent778cb92235aa8db2f105873058404a3898322b70 (diff)
downloadbcm5719-llvm-7cea5f1747045a5d52387920560937b8b30b2171.tar.gz
bcm5719-llvm-7cea5f1747045a5d52387920560937b8b30b2171.zip
Add a pretty horrible hack to prevent clang from crashing with inconsistent PCH
files. - The issue is that PCH uses a stat cache, which may reference files which have been deleted or moved. In such cases ContentCache::getBuffer was returning 0 but most clients are incapable of dealing with this (i.e., they don't). For the time being, resolve this issue by just making up some invalid file contents and. Eventually we should detect that we are in an inconsistent situation and error out with a nice message that the PCH is out of date. llvm-svn: 90699
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud