We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cf998d commit a701802Copy full SHA for a701802
1 file changed
visa/VISAKernelImpl.cpp
@@ -2197,13 +2197,8 @@ int VISAKernelImpl::CreateVISASrcOperand(
2197
cisa_opnd = static_cast<VISA_VectorOpnd *>(getOpndFromPool());
2198
if (IS_GEN_BOTH_PATH) {
2199
G4_Declare *dcl = cisa_decl->genVar.dcl;
2200
-#if START_ASSERT_CHECK
2201
- if (dcl == nullptr) {
2202
- vASSERT(false);
2203
- return VISA_FAILURE;
2204
- }
2205
-#endif
2206
- G4_Declare *aliasDcl = dcl ? dcl->getRootDeclare() : nullptr;
+ vASSERT(dcl != nullptr);
+ G4_Declare *aliasDcl = dcl->getRootDeclare();
2207
2208
// replace vISA %null variable with a null src to avoid confusing later
2209
// passes
0 commit comments