diff options
author | Narayan Kamath <narayan@google.com> | 2013-12-19 16:27:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-12-19 16:27:47 +0000 |
commit | e40687d053b89c495b6fbeb7a766b01c9c7e039c (patch) | |
tree | d7a21c353cbfda1d42e3bfdbe67caec1c81ca369 | |
parent | 0da9089a855fdbc96e3fc0ff0a881c0d25764262 (diff) | |
parent | 5bb149e1e33e89216af87a4c3809e02413277772 (diff) | |
download | art-e40687d053b89c495b6fbeb7a766b01c9c7e039c.zip art-e40687d053b89c495b6fbeb7a766b01c9c7e039c.tar.gz art-e40687d053b89c495b6fbeb7a766b01c9c7e039c.tar.bz2 |
Merge "Fix SEGV when dumping MIR CFG"
-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 { |