aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorEric Li <li.zhe.hua@gmail.com>2025-05-22 10:32:28 -0400
committerGitHub <noreply@github.com>2025-05-22 10:32:28 -0400
commit60e5ecd0431c0c62574f063f509dd3dd31cb0647 (patch)
treefa2df6452cf6bde0f6570fc9d8df7109bde938b8 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parente9cba3c8edca3dc805e82afbb482b3938cb96ae2 (diff)
downloadllvm-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