Testing the COFFPlatform on MSVC, a name shadowing issue surfaced where LoadDynLibrary inside the constructor was actually using the moved-from function argument. This patch simply renames the argument to avoid that shadowing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hi Aman,
This change looks fine, however naming the constructor argument for the member variable is idiomatic in ORC (and common elsewhere in LLVM from memory), and something like this should usually be resolved by explicitly specifying this->. Ideally constructor bodies should be small enough to spot bugs like this easily, but that's not the case here -- we should probably try to break this constructor body out into a separate method (which has the advantage of simplifying error returns too).
- Lang.