summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-06-12 09:04:03 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-06-11 15:59:20 +0000
commitdfc2091d2fb8a7694f69acf8bd39ce4953e026c2 (patch)
treea4626e21ae16a9a5e133ea3e5e95b58d2ea4d8e5 /compiler/optimizing/nodes.h
parentc936622863a50bdda9b10062515dfc02a8c8b652 (diff)
parent86dbb9a12119273039ce272b41c809fa548b37b6 (diff)
Merge "Final CL to enable register allocation on x86."
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 68848de636..143d5c9e6f 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -508,6 +508,7 @@ class HInstruction : public ArenaObject {
void ReplaceWith(HInstruction* instruction);
#define INSTRUCTION_TYPE_CHECK(type) \
+ bool Is##type() { return (As##type() != nullptr); } \
virtual H##type* As##type() { return nullptr; }
FOR_EACH_INSTRUCTION(INSTRUCTION_TYPE_CHECK)