Make nocapture analysis work with addrspacecast
[oota-llvm.git] / lib / Analysis / CaptureTracking.cpp
index 79fab1be441392401d281a62013523595abb7a49..960f86b86cde2f1cda88e82d3af858f332ac76fa 100644 (file)
@@ -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();