summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2017-07-18 20:44:47 -0700
committerDave Airlie <[email protected]>2017-09-08 04:19:47 +0100
commitfafa2995117a13df5356b82fb249cceb8987c184 (patch)
tree8103ebc5efe90f37aa8e5cbc2c19d91c768a3a4e /src
parent4cab214e76f95dfe4df83bc55da9a0dfdc642cbc (diff)
ac: fix ac_get_type_size() for doubles
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/common/ac_llvm_build.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index a765c0d7500..f8ae9db3357 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -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: