summaryrefslogtreecommitdiff
path: root/src/ir/LocalGraph.cpp
diff options
context:
space:
mode:
authorAxis <dongaxis1944@outlook.com>2022-09-20 23:15:58 +0800
committerGitHub <noreply@github.com>2022-09-20 08:15:58 -0700
commitf1ed3126637e25fc86e5988541b762974d36257a (patch)
tree7ee61f7742f29ef8710d14c8eadc156ce3ca38e4 /src/ir/LocalGraph.cpp
parentcac995816b1b7051e3984e92d546207545d44327 (diff)
downloadbinaryen-f1ed3126637e25fc86e5988541b762974d36257a.tar.gz
binaryen-f1ed3126637e25fc86e5988541b762974d36257a.tar.bz2
binaryen-f1ed3126637e25fc86e5988541b762974d36257a.zip
[Debugging] Fix compile error for dumping LocalGraph (#5055)
Diffstat (limited to 'src/ir/LocalGraph.cpp')
-rw-r--r--src/ir/LocalGraph.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ir/LocalGraph.cpp b/src/ir/LocalGraph.cpp
index 2b26ee828..8e7d2ccc0 100644
--- a/src/ir/LocalGraph.cpp
+++ b/src/ir/LocalGraph.cpp
@@ -143,12 +143,12 @@ struct Flower : public CFGWalker<Flower, Visitor<Flower>, Info> {
size_t currentIteration = 0;
for (auto& block : flowBlocks) {
#ifdef LOCAL_GRAPH_DEBUG
- std::cout << "basic block " << block.get() << " :\n";
- for (auto& action : block->contents.actions) {
+ std::cout << "basic block " << &block << " :\n";
+ for (auto& action : block.actions) {
std::cout << " action: " << *action << '\n';
}
- for (auto* lastSet : block->contents.lastSets) {
- std::cout << " last set " << lastSet << '\n';
+ for (auto& val : block.lastSets) {
+ std::cout << " last set " << val.second << '\n';
}
#endif
// go through the block, finding each get and adding it to its index,