From 937e6cd515bbe7ff2f255c8fcd40bf1a575a9a16 Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Tue, 22 Mar 2016 11:54:37 +0000 Subject: Tighten art::HNeg type constraints on its input. Ensure art::HNeg is only passed a type having the kind of its input. For a boolean, byte, short, or char input, it means HNeg's type should be int. Bug: 27684275 Change-Id: Ic8442c62090a8ab65590754874a14a0deb7acd8d --- compiler/optimizing/graph_checker.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/optimizing/graph_checker.h') diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h index 52252cd3d4..a83508481b 100644 --- a/compiler/optimizing/graph_checker.h +++ b/compiler/optimizing/graph_checker.h @@ -56,6 +56,7 @@ class GraphChecker : public HGraphDelegateVisitor { void VisitInstanceOf(HInstanceOf* check) OVERRIDE; void VisitInvokeStaticOrDirect(HInvokeStaticOrDirect* invoke) OVERRIDE; void VisitLoadException(HLoadException* load) OVERRIDE; + void VisitNeg(HNeg* instruction) OVERRIDE; void VisitPackedSwitch(HPackedSwitch* instruction) OVERRIDE; void VisitReturn(HReturn* ret) OVERRIDE; void VisitReturnVoid(HReturnVoid* ret) OVERRIDE; -- cgit v1.2.3-59-g8ed1b