]> granicus.if.org Git - clang/commit
Add the PCH file name to the message about not being able to read the PCH.
authorKaelyn Uhrain <rikka@google.com>
Wed, 20 Jun 2012 00:36:03 +0000 (00:36 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 20 Jun 2012 00:36:03 +0000 (00:36 +0000)
commitda01f62cdfb0995db355c61d96d45b0f1d790b3d
treec402506a6974a2bef624f39fbad0a5fa69c14e5d
parentaa0cd85838f2a024e589ea4e8c2094130065af21
Add the PCH file name to the message about not being able to read the PCH.

Also add a couple of unit tests to check the invalid-PCH error messages
to satisfy PR4568 and for the assertion (introduced in r149918 and fixed
in r158769) that would cause clang to crash when given an empty PCH.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158772 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSerializationKinds.td
lib/Serialization/ASTReader.cpp
test/PCH/badpch-dir.h.gch/.keep [new file with mode: 0644]
test/PCH/badpch-empty.h.gch [new file with mode: 0644]
test/PCH/badpch.c [new file with mode: 0644]