Add a FIXME for a bug Doug pointed out in code review.

llvm-svn: 209915
This commit is contained in:
Richard Smith 2014-05-30 19:44:17 +00:00
parent c8fc08c31b
commit c2422facc0
1 changed files with 4 additions and 0 deletions

View File

@ -425,6 +425,10 @@ public:
/// \brief Determine whether the specified module would be visible to
/// a lookup at the end of this module.
///
/// FIXME: This may return incorrect results for (submodules of) the
/// module currently being built, if it's queried before we see all
/// of its imports.
bool isModuleVisible(const Module *M) const {
if (VisibleModulesCache.empty())
buildVisibleModulesCache();