diff options
author | 2024-10-17 06:33:49 +0000 | |
---|---|---|
committer | 2024-10-17 09:40:47 +0000 | |
commit | d5a09b3adf930729ccb17c1e466c9c5eb053082a (patch) | |
tree | 20358f6e84710dc9fb27b021ccdd695543291543 /compiler/dex/inline_method_analyser.h | |
parent | bcf966c6c46aae2a3bf5455ea878789876de0a42 (diff) |
Fix ambiguous FillVRegs template specializations
The two specializations with <char FirstArgType, char...ArgType> and
<char ...ArgType> are ambiguous after
https://github.com/llvm/llvm-project/pull/100692. For e.g.,
MaterializeVRegs<'L', 'L'> can match both specializations:
ArgType = <'L', 'L'>, and
FirstArgType = 'L', ArgType = <'L'>
The first (now-deleted) specialization can match calls with any number
of template parameters, including zero. The second specialization
matches calls with one or more parameters. To avoid the ambiguity,
delete the first specialization and explicitly avoid calls with zero
template parameters.
Bug: http://b/363682086
Test: mmma art with ToT clang; and presubmit
Change-Id: I4a3737b4098180faa1f889c2bba475846acc8a51
Diffstat (limited to 'compiler/dex/inline_method_analyser.h')
0 files changed, 0 insertions, 0 deletions