Update for LLVM API change.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77492 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 1bac84d..da72b18 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -140,7 +140,7 @@
 
     // __isa
     C = CGM.getNSConcreteStackBlock();
-    C = VMContext.getConstantExprBitCast(C, PtrToInt8Ty);
+    C = llvm::ConstantExpr::getBitCast(C, PtrToInt8Ty);
     Elts[0] = C;
 
     // __flags
@@ -169,7 +169,7 @@
                                    llvm::GlobalValue::InternalLinkage,
                                    C, Name);
       QualType BPT = BE->getType();
-      C = VMContext.getConstantExprBitCast(C, ConvertType(BPT));
+      C = llvm::ConstantExpr::getBitCast(C, ConvertType(BPT));
       return C;
     }
 
@@ -784,7 +784,7 @@
 
   CGF.FinishFunction();
 
-  return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty);
+  return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty);
 }
 
 llvm::Constant *BlockFunction::
@@ -853,7 +853,7 @@
 
   CGF.FinishFunction();
 
-  return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty);
+  return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty);
 }
 
 llvm::Constant *BlockFunction::BuildCopyHelper(const llvm::StructType *T,
@@ -932,7 +932,7 @@
 
   CGF.FinishFunction();
 
-  return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty);
+  return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty);
 }
 
 llvm::Constant *
@@ -983,7 +983,7 @@
   BuildBlockRelease(V, flag);
   CGF.FinishFunction();
 
-  return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty);
+  return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty);
 }
 
 llvm::Constant *BlockFunction::BuildbyrefCopyHelper(const llvm::Type *T,