aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorJohn Marshall <John.W.Marshall@glasgow.ac.uk>2020-02-18 11:18:35 -0500
committerAaron Ballman <aaron@aaronballman.com>2020-02-18 11:23:17 -0500
commit260b91f379c8f86d3d6008648b3f2a945a007888 (patch)
treea9d65c6a7cace1fd0705ce0f528b8f645e4f968c /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent44bbc767000494c5702ca49c870e6642a93bbb02 (diff)
downloadllvm-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