mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Fix thinko
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -130,9 +130,9 @@ static const Value *GetGEPOperands(const Value *V, std::vector<Value*> &GEPOps){
|
|||||||
/// pointsToConstantMemory - Chase pointers until we find a (constant
|
/// pointsToConstantMemory - Chase pointers until we find a (constant
|
||||||
/// global) or not.
|
/// global) or not.
|
||||||
bool BasicAliasAnalysis::pointsToConstantMemory(const Value *P) {
|
bool BasicAliasAnalysis::pointsToConstantMemory(const Value *P) {
|
||||||
const Value *V = getUnderlyingObject(P);
|
if (const Value *V = getUnderlyingObject(P))
|
||||||
if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
|
if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
|
||||||
return GV->isConstant();
|
return GV->isConstant();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user