[PATCH] Added missing exports

Sean Silva chisophugis at gmail.com
Thu May 21 16:40:11 PDT 2015

It turns out that `Module::buildVisibleModulesCache` just recursively calls `Module::getExportedModules`. So without the self-export, the submodule doesn't export anything and contributes no exports, but if it does export itself, then it contributes itself to the list of exports.

In this case, e.g. `#include <x86intrin.h>` will trigger `module intel` to be imported, and since that module imports `wmmintrin.h` (through `immintrin.h`), then the aforementioned situation triggers.



More information about the cfe-commits mailing list