diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-03-04 17:20:30 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2011-03-04 17:20:30 +0000 |
commit | b9893d66bc7c4c017e7bd92611c33ab9148fffaf (patch) | |
tree | 17694d349896f6fe490f8c672222a76a672f0731 /llvm/lib/Target/Mips/MipsSubtarget.cpp | |
parent | 6bd1044222f9db8176378bb5cf2c1d1fc393812b (diff) | |
download | bcm5719-llvm-b9893d66bc7c4c017e7bd92611c33ab9148fffaf.tar.gz bcm5719-llvm-b9893d66bc7c4c017e7bd92611c33ab9148fffaf.zip |
Fixed source range for function template specializations.
template <class T> void foo();
template <> void foo<int>(); /* Spec 1 */
template <> void foo<int>(); /* Spec 2 */
If we look at the main location of the first explicit specialization (Spec 1) it can be seen that it points to the name of the *second* explicit specialization (Spec 2), which is a redeclaration of Spec1.
Hence, the source range obtained for Spec1 is not only inaccurate, but also invalid (the end location comes before the start location).
llvm-svn: 127002
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.cpp')
0 files changed, 0 insertions, 0 deletions