hanchenye-llvm-project/clang/test/Frontend
Diego Novillo 6dc9c4814f Fix segmentation fault when mixing -Rpass with #line.
Summary:
When using #line directives, FileManager::getFile() will return a nil
entry. This triggers an assert in translateFileLineCol().

This patch handles nil FileEntry instances by emitting a note that the
location could not be translated back to a SourceLocation. I don't
really like this solution, but we are translating presumed locations,
so some information has already been lost.

Reviewers: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D3625

llvm-svn: 208315
2014-05-08 13:49:54 +00:00
..
Inputs write a line marker right before adding included file 2014-05-01 21:11:57 +00:00
Weverything.c
Wno-everything.c
ast-codegen.c
ast-main.c
ast-main.cpp
backend-diagnostic.c Accept -no-integrated-as in -cc1 and forward it to llvm. 2014-02-21 03:14:07 +00:00
cc1-return-codes.c
cpp-output.c
darwin-eabi.c Fix r195149. Triple should correctly reflect that target. If it contains ios, 2014-01-26 23:12:43 +00:00
darwin-version.c
dependency-gen-escaping.c
dependency-gen.c
dependency-generation-crash.c
diagnostics-option-names.c
hexagon-target-basic.c
iframework.c
invalid-o-level.c Remove period at end of "optimization level is unsupported" diagnostic 2013-11-18 22:10:17 +00:00
ir-support-codegen.ll Override the datalayout in a module with -triple. 2013-12-20 22:01:25 +00:00
ir-support-errors.ll
lit.local.cfg
macros.c
mfpmath.c
mips-long-double.c
optimization-remark-line-directive.c Fix segmentation fault when mixing -Rpass with #line. 2014-05-08 13:49:54 +00:00
optimization-remark.c Support 'remark' in VerifyDiagnosticConsumer 2014-05-01 14:06:01 +00:00
output-failures.c
plugins.c Add tests for clang plugins 2014-01-08 11:38:47 +00:00
preprocessed-output-macro-first-token.c
print-header-includes.c
rewrite-includes-bom.c Fix test on Windows 2013-11-28 05:55:40 +00:00
rewrite-includes-cli-include.c do not use "1" for line marker for the predefines "file" either 2014-05-01 21:10:08 +00:00
rewrite-includes-eof.c Fix raw lex crash and -frewrite-includes noeol-at-eof failure 2013-12-13 17:04:55 +00:00
rewrite-includes-header-cmd-line.c
rewrite-includes-invalid-hasinclude.c
rewrite-includes-messages.c -fsyntax-only for a test 2014-05-01 23:58:20 +00:00
rewrite-includes-missing.c write a line marker right before adding included file 2014-05-01 21:11:57 +00:00
rewrite-includes-modules.c write a line marker right before adding included file 2014-05-01 21:11:57 +00:00
rewrite-includes-warnings.c
rewrite-includes.c write a line marker right before adding included file 2014-05-01 21:11:57 +00:00
rewrite-macros.c
stdin.c
system-header-prefix.c Move the -i[no-]system-prefix options from CC1Options.td to Options.td. 2014-03-26 01:39:59 +00:00
undef.c
unknown-pragmas.c
verify-directive.h
verify-fatal.c
verify.c
verify2.c
verify2.h
verify3.c
warning-mapping-1.c
warning-mapping-2.c
warning-mapping-3.c
warning-mapping-4.c
warning-mapping-5.c
warning-options.cpp
windows-nul.c Simplify test. No functional change intended. 2014-04-30 10:04:58 +00:00
x86_64-nacl-types.cpp