Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Description

The isNewNativeImage out parameter in NativeImage::Open was being populated but never used by the sole caller in AssemblyBinder::LoadNativeImage.

Changes

  • Removed isNewNativeImage parameter from method signature in nativeimage.h and nativeimage.cpp
  • Removed three assignments to *isNewNativeImage in the implementation
  • Removed unused local variable at call site in assemblybinder.cpp

Files Changed

  • src/coreclr/vm/nativeimage.h
  • src/coreclr/vm/nativeimage.cpp
  • src/coreclr/vm/assemblybinder.cpp
Original prompt

The isNewNativeImage parameter to NativeImage::Open does not appear to be used. Remove it.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove unused isNewNativeImage parameter from NativeImage::Open Remove unused isNewNativeImage parameter from NativeImage::Open Jan 29, 2026
Copilot AI requested a review from elinor-fung January 29, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants