From fbf53b5e38fef38a2bfdccb433e61d5d4ee802bc Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 1 Apr 2020 15:20:14 +0100 Subject: DCHECK to ensure processing instruction doesn't leave an exception. Test: test.py Change-Id: I254355c2e4682a94bea71053a19ea8e682e19871 --- compiler/optimizing/instruction_builder.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/optimizing/instruction_builder.cc') diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index fe4a86e38e..9c6576bc18 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -385,6 +385,9 @@ bool HInstructionBuilder::Build() { if (!ProcessDexInstruction(pair.Inst(), dex_pc, quicken_index)) { return false; } + DCHECK(!Thread::Current()->IsExceptionPending()) + << dex_file_->PrettyMethod(dex_compilation_unit_->GetDexMethodIndex()) + << pair.Inst().Name() << "@" << dex_pc; if (QuickenInfoTable::NeedsIndexForInstruction(&pair.Inst())) { ++quicken_index; -- cgit v1.2.3-59-g8ed1b