Skip to content

Commit e1bfdf3

Browse files
committed
Use boolean type for the predicate, even though it should never get emitted.
1 parent 76848d5 commit e1bfdf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CodeGenTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) {
583583
{}, {Scope});
584584
#define AMDGPU_FEATURE_PREDICATE_TYPE(Name, Id, SingletonId, Width, Align) \
585585
case BuiltinType::Id: \
586-
return llvm::IntegerType::getInt1Ty(getLLVMContext());
586+
return ConvertType(getContext().getLogicalOperationType());
587587
#include "clang/Basic/AMDGPUTypes.def"
588588
#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) case BuiltinType::Id:
589589
#include "clang/Basic/HLSLIntangibleTypes.def"

0 commit comments

Comments
 (0)