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 a3fdc36 commit 83a1fe8Copy full SHA for 83a1fe8
llvm/lib/Analysis/CaptureTracking.cpp
@@ -318,8 +318,8 @@ UseCaptureKind llvm::DetermineUseCaptureKind(
318
return UseCaptureKind::NO_CAPTURE;
319
320
// Not captured if only passed via 'nocapture' arguments.
321
- if (Call->isDataOperand(&U) &&
322
- !Call->doesNotCapture(Call->getDataOperandNo(&U))) {
+ assert(Call->isDataOperand(&U) && "Non-callee must be data operand");
+ if (!Call->doesNotCapture(Call->getDataOperandNo(&U))) {
323
// The parameter is not marked 'nocapture' - captured.
324
return UseCaptureKind::MAY_CAPTURE;
325
}
0 commit comments