summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-05-30 19:44:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-05-30 19:44:17 +0000
commitc2422facc0837a576e322c23395361c76c7f3403 (patch)
tree156269c6060da4f58b2331740433ce69dcb8f0e2
parentc8fc08c31b1554bc852cc5fc8241c00bd5ac52b1 (diff)
downloadbcm5719-llvm-c2422facc0837a576e322c23395361c76c7f3403.tar.gz
bcm5719-llvm-c2422facc0837a576e322c23395361c76c7f3403.zip
Add a FIXME for a bug Doug pointed out in code review.
llvm-svn: 209915
-rw-r--r--clang/include/clang/Basic/Module.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/Module.h b/clang/include/clang/Basic/Module.h
index 89fd3886b44..9b66840ba41 100644
--- a/clang/include/clang/Basic/Module.h
+++ b/clang/include/clang/Basic/Module.h
@@ -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();
OpenPOWER on IntegriCloud