aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/UnicodeCaseFold.cpp
diff options
context:
space:
mode:
authorBen Hamilton <benhamilton@google.com>2018-02-21 21:27:27 +0000
committerBen Hamilton <benhamilton@google.com>2018-02-21 21:27:27 +0000
commit07e5836521c48744ffcde58de00cc3ec98e9fe46 (patch)
tree8843c7044c3e513444d41a82d2802a010b916261 /llvm/lib/Support/UnicodeCaseFold.cpp
parente075709b41e7a61cedb14aa266532bf2d3aa1976 (diff)
downloadllvm-07e5836521c48744ffcde58de00cc3ec98e9fe46.zip
llvm-07e5836521c48744ffcde58de00cc3ec98e9fe46.tar.gz
llvm-07e5836521c48744ffcde58de00cc3ec98e9fe46.tar.bz2
[clang-format] Fix regression when getStyle() called with empty filename
Summary: D43522 caused an assertion failure when getStyle() was called with an empty filename: P8065 This adds a test to reproduce the failure and fixes the issue by ensuring we never pass an empty filename to Environment::CreateVirtualEnvironment(). Test Plan: New test added. Ran test with: % make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests Before diff, test failed with P8065. Now, test passes. Reviewers: vsapsai, jolesiak, krasimir Reviewed By: vsapsai Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D43590 llvm-svn: 325722
Diffstat (limited to 'llvm/lib/Support/UnicodeCaseFold.cpp')
0 files changed, 0 insertions, 0 deletions