Chromium Code Reviews| Index: src/IceGlobalContext.cpp |
| diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
| index 7e89a41dad133960ff7cacc24735b61fc25f6e28..4534a04c2f3ed7e56ae5ed1faab438ae512dfd66 100644 |
| --- a/src/IceGlobalContext.cpp |
| +++ b/src/IceGlobalContext.cpp |
| @@ -232,6 +232,14 @@ Constant *GlobalContext::getConstantZero(Type Ty) { |
| return getConstantFloat(0); |
| case IceType_f64: |
| return getConstantDouble(0); |
| + case IceType_v4i1: |
| + case IceType_v8i1: |
| + case IceType_v16i1: |
| + case IceType_v16i8: |
| + case IceType_v8i16: |
| + case IceType_v4i32: |
| + case IceType_v4f32: |
| + llvm_unreachable("Unsupported type"); |
|
Jim Stichnoth
2014/07/07 17:47:23
Add the type name to the error message (here and b
wala
2014/07/07 21:33:41
Done.
|
| case IceType_void: |
| case IceType_NUM: |
| break; |
| @@ -251,6 +259,14 @@ ConstantList GlobalContext::getConstantPool(Type Ty) const { |
| return ConstPool->Floats.getConstantPool(); |
| case IceType_f64: |
| return ConstPool->Doubles.getConstantPool(); |
| + case IceType_v4i1: |
| + case IceType_v8i1: |
| + case IceType_v16i1: |
| + case IceType_v16i8: |
| + case IceType_v8i16: |
| + case IceType_v4i32: |
| + case IceType_v4f32: |
| + llvm_unreachable("Unsupported type"); |
| case IceType_void: |
| case IceType_NUM: |
| break; |