summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-09 01:24:17 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-09 01:24:17 +0000
commit87429a05ff66fe6460eaa4855fd0da574e26bf7b (patch)
treed1f1993b2ae1e371850176c7ed0b88789b4e7158 /lib/CodeGen/CodeGenModule.h
parent75d0fe7100939c8f32ddf25e7b3f25e22e4a5878 (diff)
downloadclang-87429a05ff66fe6460eaa4855fd0da574e26bf7b.tar.gz
clang-87429a05ff66fe6460eaa4855fd0da574e26bf7b.tar.bz2
clang-87429a05ff66fe6460eaa4855fd0da574e26bf7b.tar.xz
[PCH] Fix reading from PCH of diagnostic pragmas.
In certain cases ASTReader would call the normal DiagnosticsEngine API to initialize the state of diagnostic pragmas but DiagnosticsEngine would try to compare source locations leading to crash because the main FileID was not yet initialized. Yet another case of the ASTReader trying to use the normal APIs and inadvertently breaking invariants. Fix this by having the ASTReader set up the internal state directly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions