summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/OptimizePHIs.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-20 23:58:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-20 23:58:07 +0000
commit969fdfddd2bccc939bf0c77d2c381231e5dc3b78 (patch)
tree963c89d30fba05d8c4ec3de05cb904a108faea32 /llvm/lib/CodeGen/OptimizePHIs.cpp
parent519561f418c77dcf46fd6d96d25d884fa07fd7da (diff)
downloadbcm5719-llvm-969fdfddd2bccc939bf0c77d2c381231e5dc3b78.tar.gz
bcm5719-llvm-969fdfddd2bccc939bf0c77d2c381231e5dc3b78.zip
[PCH] Recover gracefully if the ASTReader detects that a file is different
from the one stored in the PCH/AST, while trying to load a SLocEntry. We verify that all files of the PCH did not change before loading it but this is not enough because: - The AST may have been 1) kept around, 2) to do queries on it. - We may have 1) verified the PCH and 2) started parsing. Between 1) and 2) files may change and we are going to have crashes because the rest of clang cannot deal with the ASTReader failing to read a SLocEntry. Handle this by recovering gracefully in such a case, by initializing the SLocEntry with the info from the PCH/AST as well as reporting failure by the ASTReader. rdar://10888929 llvm-svn: 151004
Diffstat (limited to 'llvm/lib/CodeGen/OptimizePHIs.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud