We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d58d6b commit 266e4f8Copy full SHA for 266e4f8
llvm/lib/SYCLLowerIR/ComputeModuleRuntimeInfo.cpp
@@ -37,6 +37,7 @@ getSYCLESIMDSplitStatusFromMetadata(const Module &M) {
37
assert(MDOp && "Unexpected metadata operand");
38
const auto &MDConst = MDOp->getOperand(0);
39
auto *MDVal = mdconst::dyn_extract_or_null<ConstantInt>(MDConst);
40
+ assert(MDVal && "Unexpected metadata operand type");
41
uint8_t Val = MDVal->getZExtValue();
42
assert(Val < 3 && "Unexpected value for split metadata");
43
auto AsEnum = static_cast<module_split::SyclEsimdSplitStatus>(Val);
0 commit comments