Skip to content

Commit c4f2335

Browse files
jaladreipsigcbot
authored andcommitted
Prepare OpenCL passes and LTO for C++20
Prepare OpenCL passes and LTO for C++20
1 parent 7c7ad40 commit c4f2335

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

IGC/Compiler/Optimizer/OpenCLPasses/BufferBoundsChecking/BufferBoundsCheckingPatcher.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace IGC
2424
{
2525
public:
2626
static char ID;
27-
static constexpr char* BUFFER_SIZE_PLACEHOLDER_FUNCTION_NAME = "__bufferboundschecking.bufferSizePlaceholder";
27+
static constexpr const char* BUFFER_SIZE_PLACEHOLDER_FUNCTION_NAME = "__bufferboundschecking.bufferSizePlaceholder";
2828

2929
BufferBoundsCheckingPatcher();
3030
~BufferBoundsCheckingPatcher() = default;

IGC/Compiler/Optimizer/OpenCLPasses/DpasFuncs/DpasFuncsResolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ bool DpasFuncsResolution::processCvt(CallInst& CI)
684684
args[0]->getType()
685685
};
686686
Function* cvtFunc = GenISAIntrinsic::getDeclaration(func->getParent(), iid, ITys);
687-
char* cvt = "bf_cvt";
687+
const char* cvt = "bf_cvt";
688688
if (iid == GenISAIntrinsic::GenISA_hftobf8 ||
689689
iid == GenISAIntrinsic::GenISA_bf8tohf)
690690
{

0 commit comments

Comments
 (0)