On Wed, 1 Aug 2018 at 10:52, Hans Wennborg via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
> We hit this in Chromium too, see crbug.com/869824
>
> I've reverted in r338602
>
Thanks, fixed and re-landed in r338941.
> On Wed, Aug 1, 2018 at 5:26 PM, Benjamin Kramer via cfe-commits
> wrote:
Merged to 7.0 in r338674.
On Wed, Aug 1, 2018 at 7:51 PM, Hans Wennborg via cfe-commits
wrote:
> Author: hans
> Date: Wed Aug 1 10:51:23 2018
> New Revision: 338602
>
> URL: http://llvm.org/viewvc/llvm-project?rev=338602&view=rev
> Log:
> Revert r338455 "[c
We hit this in Chromium too, see crbug.com/869824
I've reverted in r338602
On Wed, Aug 1, 2018 at 5:26 PM, Benjamin Kramer via cfe-commits
wrote:
> It's pretty easy to make this crash
>
> $ cat memcpy.c
> void foo() {
> int a[1], b;
> memcpy((char*)a, (const char*)&b, (unsigned long)4);
> }
Author: hans
Date: Wed Aug 1 10:51:23 2018
New Revision: 338602
URL: http://llvm.org/viewvc/llvm-project?rev=338602&view=rev
Log:
Revert r338455 "[constexpr] Support for constant evaluation of __builtin_memcpy
and __builtin_memmove (in non-type-punning cases)."
It caused
It's pretty easy to make this crash
$ cat memcpy.c
void foo() {
int a[1], b;
memcpy((char*)a, (const char*)&b, (unsigned long)4);
}
$ clang memcpy.c
llvm/include/llvm/ADT/SmallVector.h:178: const_reference
llvm::SmallVectorTemplateCommon::back() const [T = clang::APValue::LValue
PathEntry]: A
Author: rsmith
Date: Tue Jul 31 16:35:09 2018
New Revision: 338455
URL: http://llvm.org/viewvc/llvm-project?rev=338455&view=rev
Log:
[constexpr] Support for constant evaluation of __builtin_memcpy and
__builtin_memmove (in non-type-punning cases).
This is intended to permit libc++ to make std::co