| commit | 347e0f26be83d8dd40ec0b35421287728b21aeb3 | [log] [tgz] |
|---|---|---|
| author | Douglas Gregor <dgregor@apple.com> | Sat May 21 19:26:31 2011 +0000 |
| committer | Douglas Gregor <dgregor@apple.com> | Sat May 21 19:26:31 2011 +0000 |
| tree | 237829c2b4a2171bd4eb99841cb57c82114a8374 | |
| parent | e08bca9eb48bc11ce5d3b66cd239f2b41c9d48fb [diff] |
Fix our handling of the warning when one tries to pass a non-POD/non-trivial object throuugh a C-style varargs. The warning itself was default-mapped to error, but can be downgraded, but we were treating it in Sema like a hard error, silently dropping the call. Instead, treat this problem like a warning, and do what the warning says we do: abort at runtime. To do so, we fake up a __builtin_trap() expression that gets evaluated as part of the argument. llvm-svn: 131805