summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-25 22:21:04 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-25 22:21:04 +0000
commit63eed63312c150d70d056d0e569122280e783e5a (patch)
treeecea354791364101a95a72efaf822df5a32c6f28 /llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
parent210b590562e1baa8a72ff1ce682290e9cbe98062 (diff)
downloadbcm5719-llvm-63eed63312c150d70d056d0e569122280e783e5a.tar.gz
bcm5719-llvm-63eed63312c150d70d056d0e569122280e783e5a.zip
Warn when the conversion of an integral non-type template argument to
the type of its corresponding non-type template parameter changes the value. Previously, we were diagnosing this as an error, which was wrong. We give reasonably nice warnings like: test/SemaTemplate/temp_arg_nontype.cpp:100:10: warning: non-type template argument value '256' truncated to '0' for template parameter of type 'unsigned char' Overflow<256> *overflow3; // expected-warning{{non-type template ... ^~~ test/SemaTemplate/temp_arg_nontype.cpp:96:24: note: template parameter is declared here template<unsigned char C> struct Overflow; ^ llvm-svn: 99561
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfoImpls.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud