Skip to content

Commit bfffc16

Browse files
juanrod2gfxbot
authored andcommitted
Fixes for IGC KW issues based on most recent scan report
Change-Id: Ia903e90cfd0d23d1bba7232e4edd14cc7c767d64
1 parent 18b9fd4 commit bfffc16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/Compiler/CustomSafeOptPass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,8 +1181,8 @@ void GenSpecificPattern::visitBinaryOperator(BinaryOperator &I)
11811181
void GenSpecificPattern::visitCmpInst(CmpInst &I)
11821182
{
11831183
using namespace llvm::PatternMatch;
1184-
CmpInst::Predicate Pred;
1185-
Value *Val1;
1184+
CmpInst::Predicate Pred = CmpInst::Predicate::BAD_ICMP_PREDICATE;
1185+
Value* Val1 = nullptr;
11861186
uint64_t const_int1 = 0, const_int2 = 0;
11871187
auto cmp_pattern = m_Cmp(Pred,
11881188
m_And(m_Value(Val1), m_ConstantInt(const_int1)), m_ConstantInt(const_int2));

0 commit comments

Comments
 (0)