aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorShuai Wang <shuaiwang@google.com>2018-09-11 20:05:37 +0000
committerShuai Wang <shuaiwang@google.com>2018-09-11 20:05:37 +0000
commit277b808ad394d0549972b08926b14f61c2017386 (patch)
tree08facb4159150a3819a9f8a95225867864f3dc93 /llvm/lib/CodeGen/MachineInstr.cpp
parent3dcdf9e416ecf1e83a0cec8e6a37920bc2d15085 (diff)
downloadllvm-277b808ad394d0549972b08926b14f61c2017386.zip
llvm-277b808ad394d0549972b08926b14f61c2017386.tar.gz
llvm-277b808ad394d0549972b08926b14f61c2017386.tar.bz2
[clang-tidy] Handle sugared reference types in ExprMutationAnalyzer
Summary: This handles cases like this: ``` typedef int& IntRef; void mutate(IntRef); void f() { int x; mutate(x); } ``` where the param type is a sugared type (`TypedefType`) instead of a reference type directly. Note that another category of similar but different cases are already handled properly before: ``` typedef int Int; void mutate(Int&); void f() { int x; mutate(x); } ``` Reviewers: aaron.ballman, alexfh, george.karpenkov Subscribers: xazax.hun, a.sidorin, Szelethus, cfe-commits Differential Revision: https://reviews.llvm.org/D50953 llvm-svn: 341986
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions