diff options
author | Eric Li <li.zhe.hua@gmail.com> | 2025-05-22 10:32:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-22 10:32:28 -0400 |
commit | 60e5ecd0431c0c62574f063f509dd3dd31cb0647 (patch) | |
tree | fa2df6452cf6bde0f6570fc9d8df7109bde938b8 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | e9cba3c8edca3dc805e82afbb482b3938cb96ae2 (diff) | |
download | llvm-60e5ecd0431c0c62574f063f509dd3dd31cb0647.zip llvm-60e5ecd0431c0c62574f063f509dd3dd31cb0647.tar.gz llvm-60e5ecd0431c0c62574f063f509dd3dd31cb0647.tar.bz2 |
[ASTMatchers] Fix matching `CXXOperatorCallExpr` of `->` (#139994)
The `->` operator does not have a corresponding `UnaryOperatorKind`, and
so was unsupported by the `hasOperatorName` and `hasUnaryOperand`
matchers.
Instead of trying to determine the equivalent unary or binary operator
and then deriving the opcode string, we consult `OperatorKinds.def`
directly (through `getOperatorSpelling`).
For `hasUnaryOperand` support, we special case the arrow operator
specifically.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions