summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSubtarget.cpp
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo.bagnara@gmail.com>2011-03-04 17:20:30 +0000
committerAbramo Bagnara <abramo.bagnara@gmail.com>2011-03-04 17:20:30 +0000
commitb9893d66bc7c4c017e7bd92611c33ab9148fffaf (patch)
tree17694d349896f6fe490f8c672222a76a672f0731 /llvm/lib/Target/Mips/MipsSubtarget.cpp
parent6bd1044222f9db8176378bb5cf2c1d1fc393812b (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud