Skip to content

Commit ad48f52

Browse files
committed
Address code review comment
1 parent dfc3c25 commit ad48f52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/CIR/CodeGen/CIRGenCall.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ RValue CIRGenFunction::emitCall(const CIRGenFunctionInfo &CallInfo,
725725
}
726726
case cir::TEK_Complex: {
727727
mlir::ResultRange results = theCall->getOpResults();
728+
assert(!results.empty() &&
729+
"Expected at least one result for complex rvalue");
728730
return RValue::getComplex(results[0]);
729731
}
730732
}

0 commit comments

Comments
 (0)