summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Alexandre Rames <alexandre.rames@linaro.org> 2016-01-13 14:34:39 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2016-01-13 15:00:44 +0000
commit780aeced2a8ef918901d8f450864de934f79c555 (patch)
tree0e91880137f2a5cffad2ead46d1b917bd523ae47 /compiler/optimizing/nodes.h
parenta38e418fb2d9b817309c54b54ca85039907c2bbb (diff)
Update `ValidateInvokeRuntime()` and HDivZeroCheck.
Change-Id: I35beab2777a8c83bd508d56966afa1ceff9ee24f
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index b65d0f5750..fdb14fcb07 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -4010,8 +4010,10 @@ class HRem : public HBinaryOperation {
class HDivZeroCheck : public HExpression<1> {
public:
+ // `HDivZeroCheck` can trigger GC, as it may call the `ArithmeticException`
+ // constructor.
HDivZeroCheck(HInstruction* value, uint32_t dex_pc)
- : HExpression(value->GetType(), SideEffects::None(), dex_pc) {
+ : HExpression(value->GetType(), SideEffects::CanTriggerGC(), dex_pc) {
SetRawInputAt(0, value);
}