Skip to content

Model pass through behavior of our ArgCaptureAbortIf* support functions#863

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_902635618
Apr 23, 2026
Merged

Model pass through behavior of our ArgCaptureAbortIf* support functions#863
copybara-service[bot] merged 1 commit intomainfrom
test_902635618

Conversation

@copybara-service
Copy link
Copy Markdown

Model pass through behavior of our ArgCaptureAbortIf* support functions

Otherwise, we it looks like the return of those ArgCaptureAbortIf* get checked, but not the original inputs, and we end up accidentally inferring Nullable for the return of Target in this case:

int* _Nullable Get(int x);
int* Target() {
  int* _Nullable p = Get(-1); 
  CHECK(p != nullptr);
  return p;
}

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 20, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service Bot force-pushed the test_902635618 branch 2 times, most recently from 943fca2 to 3b0e62f Compare April 23, 2026 14:17
…ions

Otherwise, we it looks like the return of those `ArgCaptureAbortIf*` get checked, but not the original inputs, and we end up accidentally inferring Nullable for the return of `Target` in this case:

```
int* _Nullable Get(int x);
int* Target() {
  int* _Nullable p = Get(-1);
  CHECK(p != nullptr);
  return p;
}
```

PiperOrigin-RevId: 904443703
@copybara-service copybara-service Bot merged commit 18d4069 into main Apr 23, 2026
@copybara-service copybara-service Bot deleted the test_902635618 branch April 23, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants