[CallSite] Make construction from Value* (or Instruction*) explicit.
[oota-llvm.git] / lib / Analysis / MemoryDependenceAnalysis.cpp
index 716e3e65e4db369fd457c5c0b2419f7a77685be3..a7add7bfef3493c8f3229948b3f4e679ceb496e1 100644 (file)
@@ -223,7 +223,7 @@ getCallSiteDependencyFrom(CallSite CS, bool isReadOnlyCall,
       continue;
     }
 
-    if (CallSite InstCS = cast<Value>(Inst)) {
+    if (auto InstCS = CallSite(Inst)) {
       // Debug intrinsics don't cause dependences.
       if (isa<DbgInfoIntrinsic>(Inst)) continue;
       // If these two calls do not interfere, look past it.