From 875b4f26517ce215342746f07e41cda4c1991237 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 19 Nov 2018 12:59:15 -0800 Subject: ART: Avoid some tidy nullptr warnings Sprinkle some (D)CHECKs to tell tidy our expectations. Bug: 32619234 Test: m test-art-host Change-Id: I315b1602b20475402dd8383e1accc49e5a63eb5c --- compiler/optimizing/code_generator.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/code_generator.cc') diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index d8e442c642..c2e83cd2c2 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -1126,6 +1126,7 @@ void CodeGenerator::RecordPcInfo(HInstruction* instruction, if (osr) { DCHECK_EQ(info->GetSuspendCheck(), instruction); DCHECK(info->IsIrreducible()); + DCHECK(environment != nullptr); if (kIsDebugBuild) { for (size_t i = 0, environment_size = environment->Size(); i < environment_size; ++i) { HInstruction* in_environment = environment->GetInstructionAt(i); -- cgit v1.2.3-59-g8ed1b