aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorJulian Schmidt <git.julian.schmidt@gmail.com>2024-11-15 07:05:20 +0100
committerGitHub <noreply@github.com>2024-11-15 01:05:20 -0500
commit9ae21b073ab48b376687ecd7fbae12e08b4ae86e (patch)
tree0f4b73aa66313c1d75a46b516170597fa4019ae3 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent1b23ebe0770aaf85f37e085b53067066d2d99cc8 (diff)
downloadllvm-9ae21b073ab48b376687ecd7fbae12e08b4ae86e.zip
llvm-9ae21b073ab48b376687ecd7fbae12e08b4ae86e.tar.gz
llvm-9ae21b073ab48b376687ecd7fbae12e08b4ae86e.tar.bz2
[clangd] fix extract-to-function for overloaded operators (#81640)
When selecting code that contains the use of overloaded operators, the SelectionTree will attribute the operator to the operator declaration, not to the `CXXOperatorCallExpr`. To allow extract-to-function to work with these operators, make unselected `CXXOperatorCallExpr`s valid root statements, just like `DeclStmt`s. Partially fixes clangd/clangd#1254 --------- Co-authored-by: Nathan Ridge <zeratul976@hotmail.com>
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions