[ms-cxxabi] Fix assertion on unhandled function template arg types
authorReid Kleckner <reid@kleckner.net>
Wed, 20 Mar 2013 01:40:23 +0000 (01:40 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 20 Mar 2013 01:40:23 +0000 (01:40 +0000)
commit5251886cd8ee085b7425392c1a95cde4f0c8c1cf
tree6cf6393b5400dea8dd4f9c8e6bb0d4c03f6859f5
parentc02bbb61e1225f961d99ae6daf9789afdee8bbcf
[ms-cxxabi] Fix assertion on unhandled function template arg types

This code was changed in r158376 to get template argument source info
for better diagnostics, but the current code asserts for any kind of
unsupported template argument before it can issue a diagnostic.  This change
goes back to the Itanium implementation of isTemplate() and puts the argument
index into the diagnostic instead of a source location.

Review URL: http://llvm-reviews.chandlerc.com/D553

llvm-svn: 177471
clang/lib/AST/MicrosoftMangle.cpp