diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-06-20 00:16:40 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-06-20 00:16:40 +0000 |
commit | 2212f807c7774aa168e9242300b420beb1915650 (patch) | |
tree | 2bd6e333339c93d4f893e6acc746ef754ea42bcb /llvm/lib/Support/Unix/PathV2.inc | |
parent | 5f96883d446ff00665474b8882c23fbc98f47b12 (diff) | |
download | bcm5719-llvm-2212f807c7774aa168e9242300b420beb1915650.tar.gz bcm5719-llvm-2212f807c7774aa168e9242300b420beb1915650.zip |
Don't assert when given an empty range.
llvm::RawMemoryObject handles empty ranges just fine, and the assert can
be triggered in the wild by e.g. invoking clang with a file that
included an empty pre-compiled header file when clang has been built
with assertions enabled. Without assertions enabled, clang will properly
report that the empty file is not a valid PCH.
llvm-svn: 158769
Diffstat (limited to 'llvm/lib/Support/Unix/PathV2.inc')
0 files changed, 0 insertions, 0 deletions