diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-06-02 14:48:05 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-21 19:55:30 +0000 |
commit | b29dd819c9f4cc0f33c24a10b128c363a4c83a6f (patch) | |
tree | 3c9afe9ebbdf15a0b70862bdb24f02e445ac804e /src/sksl/SkSLCFGGenerator.cpp | |
parent | 0215312f5f4e2b72c39e2a49cd8eb321fa9f9b16 (diff) |
clean up sksl dead variable handling
Change-Id: I301e82bf87d976e59a02b0f383da67eaf5a8795a
Reviewed-on: https://skia-review.googlesource.com/18494
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLCFGGenerator.cpp')
-rw-r--r-- | src/sksl/SkSLCFGGenerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sksl/SkSLCFGGenerator.cpp b/src/sksl/SkSLCFGGenerator.cpp index 2fe049d9bd..df10c62b7a 100644 --- a/src/sksl/SkSLCFGGenerator.cpp +++ b/src/sksl/SkSLCFGGenerator.cpp @@ -476,6 +476,8 @@ void CFGGenerator::addStatement(CFG& cfg, std::unique_ptr<Statement>* s) { cfg.fBlocks[cfg.fCurrent].fNodes.push_back({ BasicBlock::Node::kStatement_Kind, false, nullptr, &stmt }); } + cfg.fBlocks[cfg.fCurrent].fNodes.push_back({ BasicBlock::Node::kStatement_Kind, false, + nullptr, s }); break; } case Statement::kDiscard_Kind: |