ac: fix ac_get_type_size() for doubles
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 19 Jul 2017 03:44:47 +0000 (20:44 -0700)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Sep 2017 03:19:47 +0000 (04:19 +0100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_llvm_build.c

index a765c0d7500392a138a18a1f056d4fc05763b4ff..f8ae9db3357591bd18c27a5dcd28cc23f19c2b24 100644 (file)
@@ -99,6 +99,7 @@ ac_get_type_size(LLVMTypeRef type)
                return LLVMGetIntTypeWidth(type) / 8;
        case LLVMFloatTypeKind:
                return 4;
+       case LLVMDoubleTypeKind:
        case LLVMPointerTypeKind:
                return 8;
        case LLVMVectorTypeKind: