summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-05-08 13:49:54 +0000
committerDiego Novillo <dnovillo@google.com>2014-05-08 13:49:54 +0000
commit6dc9c4814f40a2f4921245cb61aee25b8c418985 (patch)
tree555605d42602f4f86c2554be77b442aea54e85b1 /clang/lib/CodeGen/CodeGenModule.cpp
parente8172d85f9fa6df413ffce29e2fde5b65503d32b (diff)
downloadbcm5719-llvm-6dc9c4814f40a2f4921245cb61aee25b8c418985.tar.gz
bcm5719-llvm-6dc9c4814f40a2f4921245cb61aee25b8c418985.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud