diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2024-03-06 15:55:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 15:55:41 +0100 |
commit | fec471649fffaa3ec44e17801e5c9605825e58bb (patch) | |
tree | c0b364a65fd596fcd9795d2168a2d82129e4b09e /clang/lib/Sema/SemaChecking.cpp | |
parent | 4490003a22658dcd12527029b2c8682b63d8a9d6 (diff) | |
download | llvm-fec471649fffaa3ec44e17801e5c9605825e58bb.zip llvm-fec471649fffaa3ec44e17801e5c9605825e58bb.tar.gz llvm-fec471649fffaa3ec44e17801e5c9605825e58bb.tar.bz2 |
[clang] Use getDefaultArgRange instead of getDefaultArg to retrieve the (#79296)
source location in` AliasTemplateDeductionGuideTransform`.
I don't have a reproducible testcase, but this should be a safe and
non-functional change. We have checked the `hasDefaultArg` before
calling `getDefaultArg()`, but `hasDefaultArg` allows
unparsed/uninstantiated default arg which is prohibited in
`getDefaultArg()`.
Since we're only interested in the source location, we switch to use
`getDefaultArgRange()` API.
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
0 files changed, 0 insertions, 0 deletions