mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 16:45:03 +00:00
Use a stronger predicate here, pointed out by Duncan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a9d4da85d6
commit
29d8d6b039
@ -277,7 +277,7 @@ static bool isObjectPointerWithTrustworthySize(const Value *V) {
|
||||
if (const AllocaInst *AI = dyn_cast<AllocaInst>(V))
|
||||
return !AI->isArrayAllocation();
|
||||
if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
|
||||
return !GV->isWeakForLinker();
|
||||
return !GV->mayBeOverridden();
|
||||
if (const Argument *A = dyn_cast<Argument>(V))
|
||||
return A->hasByValAttr();
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user