summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff options
context:
space:
mode:
authorShaurya Gupta <shauryab98@gmail.com>2019-10-02 13:51:06 +0000
committerShaurya Gupta <shauryab98@gmail.com>2019-10-02 13:51:06 +0000
commitf1758079540c17166f0ac439af1e8f609cd94735 (patch)
treebb16fe53658a0eb91c229f30b710e77d76e7f30d /llvm/lib/Transforms/Utils/CodeExtractor.cpp
parent5c375ed66945f64bcad3f8d4178dc79315a3ee68 (diff)
downloadbcm5719-llvm-f1758079540c17166f0ac439af1e8f609cd94735.tar.gz
bcm5719-llvm-f1758079540c17166f0ac439af1e8f609cd94735.zip
[Clangd] Ensure children are always RootStmt in ExtractFunction (Fixes #153)
Summary: We weren't always checking if children are RootStmts in ExtractFunction. For `void f([[int a]]);`, the ParmVarDecl appeared as a RootStmt since we didn't perform the check and ended up being casted to a (null) Stmt. Reviewers: sammccall, kadircet Subscribers: kristof.beyls, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68182 llvm-svn: 373471
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud