ac: fix ac_get_type_size() for doubles

Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Connor Abbott 2017-07-18 20:44:47 -07:00 committed by Dave Airlie
parent 4cab214e76
commit fafa299511
1 changed files with 1 additions and 0 deletions

View 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: