mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Make nocapture analysis work with addrspacecast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -145,6 +145,7 @@ void llvm::PointerMayBeCaptured(const Value *V, CaptureTracker *Tracker) {
|
||||
case Instruction::GetElementPtr:
|
||||
case Instruction::PHI:
|
||||
case Instruction::Select:
|
||||
case Instruction::AddrSpaceCast:
|
||||
// The original value is not captured via this if the new value isn't.
|
||||
Count = 0;
|
||||
for (Instruction::use_iterator UI = I->use_begin(), UE = I->use_end();
|
||||
|
Reference in New Issue
Block a user