summaryrefslogtreecommitdiffstats
path: root/runtime/primitive.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/primitive.h')
-rw-r--r--runtime/primitive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/primitive.h b/runtime/primitive.h
index 2d6b6b3..d11f1e9 100644
--- a/runtime/primitive.h
+++ b/runtime/primitive.h
@@ -153,7 +153,10 @@ class Primitive {
}
static bool IsIntegralType(Type type) {
+ // Java language does not allow treating boolean as an integral type but our
+ // bit representation makes it safe.
switch (type) {
+ case kPrimBoolean:
case kPrimByte:
case kPrimChar:
case kPrimShort: