diff options
author | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2021-08-06 14:50:09 -0400 |
---|---|---|
committer | Arthur O'Dwyer <arthur.j.odwyer@gmail.com> | 2021-08-11 13:36:29 -0400 |
commit | c1a8f12873783e8f4827437f6b2dddadfc58109d (patch) | |
tree | f890a1faa741f5e5f7d0c625fb931bb2ef282f3d /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | b2c262cfb12f4fb43177759426b1c6128d4236e4 (diff) | |
download | llvm-c1a8f12873783e8f4827437f6b2dddadfc58109d.zip llvm-c1a8f12873783e8f4827437f6b2dddadfc58109d.tar.gz llvm-c1a8f12873783e8f4827437f6b2dddadfc58109d.tar.bz2 |
[libc++] Restore `basic_ios`'s implicit conversion to `bool` in C++03 mode.
efriedma noted that D104682 broke this test case, reduced from SPEC2006.
#include <istream>
bool a(std::istream a) {
return a.getline(0,0) == 0;
}
We can unbreak it by restoring the conversion to something-convertible-to-bool.
We chose `void*` in order to match libstdc++.
For more ancient history, see PR19460: https://bugs.llvm.org/show_bug.cgi?id=19460
Differential Revision: https://reviews.llvm.org/D107663
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions