Skip to content

Commit

Permalink
Mark DirectX resource types as CanBeGlobal
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Nov 18, 2024
1 parent f8a981a commit ee6637f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/IR/Type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {

// DirectX resources
if (Name.starts_with("dx."))
return TargetTypeInfo(PointerType::get(C, 0));
return TargetTypeInfo(PointerType::get(C, 0), TargetExtType::CanBeGlobal);

// Opaque types in the AMDGPU name space.
if (Name == "amdgcn.named.barrier") {
Expand Down

0 comments on commit ee6637f

Please sign in to comment.