mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-16 18:16:05 +00:00

the serialised diagnostics Clang should avoid calling report_fatal_error when the file with the serialised diagnostics is empty. This commit changes Clang's serialised diagnostic reader, now it reports an appropriate error instead of crashing. rdar://31939877 Differential Revision: https://reviews.llvm.org/D35069 llvm-svn: 307384
3 lines
166 B
Plaintext
3 lines
166 B
Plaintext
// RUN: not c-index-test -read-diagnostics %S/Inputs/empty.dia 2>&1 | FileCheck %s
|
|
// CHECK: Trouble deserializing file (Invalid File): Invalid diagnostics signature
|