[Sema] Fix PR28623.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 21 Jul 2016 03:28:13 +0000 (03:28 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 21 Jul 2016 03:28:13 +0000 (03:28 +0000)
commit92b43a462e141fac169a162616f464000633cece
treec062a54909113e4dcee4b6a59a002f7bef8fd77c
parent7efa5e4b5f61b822dfcd52b7220c209b8044ca1d
[Sema] Fix PR28623.

In atomic builtins, we assumed that the LValue conversion on the first
argument would succeed. So, we would crash given code like:

```
void ovl(char);
void ovl(int);
__atomic_store_n(ovl, 0, 0);
```

This patch makes us not assume that said conversion is successful. :)

llvm-svn: 276232
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaCXX/atomic-ops.cpp [new file with mode: 0644]