Files
clang-p2996/clang/test/PCH/line-directive-nofilename.h
Hans Wennborg 1448736e49 Correctly handle line table entries without filenames during AST serialization
The current code would hit an assert in ASTWriter when trying to write
out the filename for a line table entry that didn't have any. Fix this
by allowing the -1 sentinel value to round-trip through serialization.

Differential revision: https://reviews.llvm.org/D40746

llvm-svn: 319707
2017-12-04 22:28:45 +00:00

6 lines
149 B
C

#line 42
int foo; // This should appear as at line-directive-nofilename.h:42
#line 100 "foobar.h"
int bar; // This should appear as at foobar.h:100