summaryrefslogtreecommitdiff
path: root/compiler/optimizing/instruction_builder.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2020-04-01 15:20:14 +0100
committerNicolas Geoffray <ngeoffray@google.com>2020-04-02 13:02:04 +0000
commitfbf53b5e38fef38a2bfdccb433e61d5d4ee802bc (patch)
treefb731d75bcb0fa71d7fa85e664aa1fd34f40cbf5 /compiler/optimizing/instruction_builder.cc
parent4fa07a5727551018e2dcd93d41dac98f20212e99 (diff)
DCHECK to ensure processing instruction doesn't leave an exception.
Test: test.py Change-Id: I254355c2e4682a94bea71053a19ea8e682e19871
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
-rw-r--r--compiler/optimizing/instruction_builder.cc3
1 files changed, 3 insertions, 0 deletions
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;