summaryrefslogtreecommitdiff
path: root/compiler/optimizing/block_namer.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-05-10 15:44:24 +0000
committer Vladimir Marko <vmarko@google.com> 2021-05-13 08:49:06 +0000
commitdac82393785d1d2fddae6bf6d8364b55b001925a (patch)
tree2870783966316c965d40c3a6cd4b2cadce632c79 /compiler/optimizing/block_namer.cc
parentb1db5a110d312c5a51a52f7f6bc870f9205b6ff8 (diff)
Fix array location aliasing checks in LSE.
Test: New tests in load_store_elimination_test. Test: New test in 539-checker-lse. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 187487955 Change-Id: Iff66d5406cf1b36c3bebbce1d48117f83bb50553
Diffstat (limited to 'compiler/optimizing/block_namer.cc')
-rw-r--r--compiler/optimizing/block_namer.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/optimizing/block_namer.cc b/compiler/optimizing/block_namer.cc
index 9936bf1c48..d30448cd23 100644
--- a/compiler/optimizing/block_namer.cc
+++ b/compiler/optimizing/block_namer.cc
@@ -21,7 +21,13 @@
namespace art {
std::ostream& BlockNamer::PrintName(std::ostream& os, HBasicBlock* blk) const {
- return os << "B" << blk->GetBlockId();
+ os << "B";
+ if (blk != nullptr) {
+ os << blk->GetBlockId();
+ } else {
+ os << "<none>";
+ }
+ return os;
}
} // namespace art