diff options
-rw-r--r-- | compiler/dex/mir_graph.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/mir_graph.h b/compiler/dex/mir_graph.h index f998005..a80c32d 100644 --- a/compiler/dex/mir_graph.h +++ b/compiler/dex/mir_graph.h @@ -467,7 +467,7 @@ class MIRGraph { } bool IsConst(RegLocation loc) const { - return (IsConst(loc.orig_sreg)); + return loc.orig_sreg < 0 ? false : IsConst(loc.orig_sreg); } int32_t ConstantValue(RegLocation loc) const { |