[llvm-commits] [llvm] r89666 - /llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
Chris Lattner
sabre at nondot.org
Mon Nov 23 09:07:35 PST 2009
Author: lattner
Date: Mon Nov 23 11:07:35 2009
New Revision: 89666
URL: http://llvm.org/viewvc/llvm-project?rev=89666&view=rev
Log:
fix comment, thanks all :)
Modified:
llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp?rev=89666&r1=89665&r2=89666&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp Mon Nov 23 11:07:35 2009
@@ -263,7 +263,9 @@
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;
}
More information about the llvm-commits
mailing list