diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-02-18 17:23:05 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-02-18 17:23:05 +0000 |
| commit | c5c04883383b1df4f76f0307e958dfa02ca4257b (patch) | |
| tree | c11dad006c2a3f3e09a8f996e5cd1a98cd27312b /clang/lib | |
| parent | 8078b8bddc84eb1e909ebf5488eecbce582db414 (diff) | |
| download | bcm5719-llvm-c5c04883383b1df4f76f0307e958dfa02ca4257b.tar.gz bcm5719-llvm-c5c04883383b1df4f76f0307e958dfa02ca4257b.zip | |
Add an unavailable __tg_promote function to attract incorrect uses of type-generic macros, rom Howard Hinnant.
llvm-svn: 64919
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Headers/tgmath.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Headers/tgmath.h b/clang/lib/Headers/tgmath.h index cf8994fc8fd..f64f117d2f2 100644 --- a/clang/lib/Headers/tgmath.h +++ b/clang/lib/Headers/tgmath.h @@ -37,6 +37,9 @@ // promotion +typedef void _Argument_type_is_not_arithmetic; +static _Argument_type_is_not_arithmetic __tg_promote(...) \ + __attribute__((__unavailable__,__overloadable__)); static double _TG_ATTRSp __tg_promote(int); static double _TG_ATTRSp __tg_promote(unsigned int); static double _TG_ATTRSp __tg_promote(long); |

