fix comment, thanks all :)
authorChris Lattner <sabre@nondot.org>
Mon, 23 Nov 2009 17:07:35 +0000 (17:07 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Nov 2009 17:07:35 +0000 (17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89666 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp

index 32ca9111c26d1ead7d29be4c8328265887bff976..ff65e33ad50f7b492b39b87972eb2603e6c42dfd 100644 (file)
@@ -263,7 +263,9 @@ ImmutablePass *llvm::createBasicAliasAnalysisPass() {
 bool BasicAliasAnalysis::pointsToConstantMemory(const Value *P) {
   if (const GlobalVariable *GV = 
         dyn_cast<GlobalVariable>(P->getUnderlyingObject()))
-    // FIXME: shouldn't this require GV to be "ODR"?
+    // Note: this doesn't require GV to be "ODR" because it isn't legal for a
+    // global to be marked constant in some modules and non-constant in others.
+    // GV may even be a declaration, not a definition.
     return GV->isConstant();
   return false;
 }