diff options
Diffstat (limited to 'llvm/lib/Target/DirectX/DXILOpBuilder.cpp')
| -rw-r--r-- | llvm/lib/Target/DirectX/DXILOpBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/DirectX/DXILOpBuilder.cpp b/llvm/lib/Target/DirectX/DXILOpBuilder.cpp index 905756469902..59fe6d45757a 100644 --- a/llvm/lib/Target/DirectX/DXILOpBuilder.cpp +++ b/llvm/lib/Target/DirectX/DXILOpBuilder.cpp @@ -183,7 +183,8 @@ static StructType *getResRetType(Type *OverloadTy, LLVMContext &Ctx) { } static StructType *getHandleType(LLVMContext &Ctx) { - return getOrCreateStructType("dx.types.Handle", Type::getInt8PtrTy(Ctx), Ctx); + return getOrCreateStructType("dx.types.Handle", PointerType::getUnqual(Ctx), + Ctx); } static Type *getTypeFromParameterKind(ParameterKind Kind, Type *OverloadTy) { |
