mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 05:55:40 +00:00
Fix thinko
llvm-svn: 11027
This commit is contained in:
parent
f5b5d1f2f8
commit
a497e3d6e1
@ -130,9 +130,9 @@ static const Value *GetGEPOperands(const Value *V, std::vector<Value*> &GEPOps){
|
||||
/// pointsToConstantMemory - Chase pointers until we find a (constant
|
||||
/// global) or not.
|
||||
bool BasicAliasAnalysis::pointsToConstantMemory(const Value *P) {
|
||||
const Value *V = getUnderlyingObject(P);
|
||||
if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
|
||||
return GV->isConstant();
|
||||
if (const Value *V = getUnderlyingObject(P))
|
||||
if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
|
||||
return GV->isConstant();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user