diff options
author | Shaurya Gupta <shauryab98@gmail.com> | 2019-10-02 13:51:06 +0000 |
---|---|---|
committer | Shaurya Gupta <shauryab98@gmail.com> | 2019-10-02 13:51:06 +0000 |
commit | f1758079540c17166f0ac439af1e8f609cd94735 (patch) | |
tree | bb16fe53658a0eb91c229f30b710e77d76e7f30d /llvm/lib/Transforms/Utils/CodeExtractor.cpp | |
parent | 5c375ed66945f64bcad3f8d4178dc79315a3ee68 (diff) | |
download | bcm5719-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