mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
fix comment, thanks all :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
403ac2ece3
commit
b27db37ed0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user