As a guess, is FindPackages being inlined? If so, and if the parameter passed in as &InfoDir isn't subsequently used, the compiler would be within its rights to remove the assignment to InfoDir. May want to check callers of FindPackages for this possibility.
As a guess, is FindPackages being inlined? If so, and if the parameter passed in as &InfoDir isn't subsequently used, the compiler would be within its rights to remove the assignment to InfoDir. May want to check callers of FindPackages for this possibility.