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
6 lines
149 B
C
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
|