Update for LLVM API change.
llvm-svn: 77492
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 1bac84d..da72b18 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/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,