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 | 44b2c82871fad5407930cdf0b90c578fa4e60a3a (patch) | |
tree | ea75f5d3cec95b6fccb4ff274411ab6ec3a4bcc9 /unittests | |
parent | bf833f07473851c79018a1e32186e1b9c00d03c1 (diff) | |
download | external_llvm-44b2c82871fad5407930cdf0b90c578fa4e60a3a.zip external_llvm-44b2c82871fad5407930cdf0b90c578fa4e60a3a.tar.gz external_llvm-44b2c82871fad5407930cdf0b90c578fa4e60a3a.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
0 files changed, 0 insertions, 0 deletions