diff options
author | John Marshall <John.W.Marshall@glasgow.ac.uk> | 2020-02-18 11:18:35 -0500 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2020-02-18 11:23:17 -0500 |
commit | 260b91f379c8f86d3d6008648b3f2a945a007888 (patch) | |
tree | a9d65c6a7cace1fd0705ce0f528b8f645e4f968c /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 44bbc767000494c5702ca49c870e6642a93bbb02 (diff) | |
download | llvm-260b91f379c8f86d3d6008648b3f2a945a007888.zip llvm-260b91f379c8f86d3d6008648b3f2a945a007888.tar.gz llvm-260b91f379c8f86d3d6008648b3f2a945a007888.tar.bz2 |
Use getLocation() in "too few/too many arguments" diagnostic
Use the more accurate location when emitting the location of the
function being called's prototype in diagnostics emitted when calling
a function with an incorrect number of arguments.
In particular, avoids showing a trace of irrelevant macro expansions
for "MY_EXPORT static int AwesomeFunction(int, int);". Fixes PR#23564.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions