diff options
author | Ben Langmuir <blangmuir@apple.com> | 2016-02-11 18:54:02 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2016-02-11 18:54:02 +0000 |
commit | 9b1e442e67f39ffb6217775ace457f8191d4c34a (patch) | |
tree | 886814fea2fa55a784789eead565ae1bd4ec673b /llvm/lib/Object/IRObjectFile.cpp | |
parent | 74d7d2f00b24ee60ba9bd7232bc51e937828d22c (diff) | |
download | llvm-9b1e442e67f39ffb6217775ace457f8191d4c34a.zip llvm-9b1e442e67f39ffb6217775ace457f8191d4c34a.tar.gz llvm-9b1e442e67f39ffb6217775ace457f8191d4c34a.tar.bz2 |
[Modules] Early-exit if ReadOptionsBlock fails to avoid crashing
If we didn't tell ReadOptionsBlock to allow failures then we can't
assume that the stream is not in the middle of a block if it returns
out-of-date. This was causing a crash when we tried to continue reading.
Also, it's just generally a good idea to early-exit if we're doing
implicit module builds, since we will want to immediately rebuild this
module anyway and there's no reason to waste time continuing after
failure.
rdar://problem/24114938
llvm-svn: 260563
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions