Skip to content

Commit 0fa85c9

Browse files
igorban-inteligcbot
authored andcommitted
Fixed warning from static code analyser
.
1 parent 9271d51 commit 0fa85c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXLoadStoreLegalization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Value *GenXLoadStoreLegalization::splitMemoryOperation(Value *InsertTo,
183183
unsigned SplitWidth,
184184
unsigned &Index) const {
185185
const auto ExecSize = vc::InternalIntrinsic::getMemorySimdWidth(&CI);
186-
const auto VectorSize =
186+
const uint64_t VectorSize =
187187
vc::InternalIntrinsic::getMemoryVectorSizePerLane(&CI);
188188

189189
auto *Func = getMemoryIntrinsic(CI, SplitWidth);
@@ -219,7 +219,7 @@ Value *GenXLoadStoreLegalization::extendMemoryOperation(Value *InsertTo,
219219
unsigned ExtendWidth,
220220
unsigned Index) const {
221221
const auto ExecSize = vc::InternalIntrinsic::getMemorySimdWidth(&CI);
222-
const auto VectorSize =
222+
const uint64_t VectorSize =
223223
vc::InternalIntrinsic::getMemoryVectorSizePerLane(&CI);
224224
const auto RestSize = ExecSize - Index;
225225
if (RestSize == 0)

IGC/VectorCompiler/lib/GenXCodeGen/GenXVerify.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class GenXVerify : public ModulePass,
6767
cl::desc("Do not display non-fatal warnings.")};
6868

6969
static inline const StringRef DbgPrefix = "GenXVerify";
70-
LLVMContext *Ctx;
70+
LLVMContext *Ctx = nullptr;
7171
bool IsBroken = false;
7272
GenXVerifyStage Stage;
7373
enum class IsFatal { No = 0, Yes = 1 };

0 commit comments

Comments
 (0)