summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-01-19 06:33:43 +0000
committerJohn McCall <rjmccall@apple.com>2011-01-19 06:33:43 +0000
commit424cec97bdff219cd976dce85a405140069c57f9 (patch)
tree2398a9d0ab79460797b9e343d9e163f6b2b15a13 /clang/lib/CodeGen/CGBlocks.cpp
parent0c49533039cba8214ada637dd313f54c6a5a8364 (diff)
downloadbcm5719-llvm-424cec97bdff219cd976dce85a405140069c57f9.tar.gz
bcm5719-llvm-424cec97bdff219cd976dce85a405140069c57f9.zip
Change QualType::getTypePtr() to return a const pointer, then change a
thousand other things which were (generally inadvertantly) relying on that. llvm-svn: 123814
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index daa9052fdac..3cf128b8c65 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -821,7 +821,7 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, const BlockExpr *BExpr,
SC_Static,
SC_None,
false, HasPrototype);
- if (FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FnType)) {
+ if (const FunctionProtoType *FT = dyn_cast<FunctionProtoType>(FnType)) {
const FunctionDecl *CFD = dyn_cast<FunctionDecl>(CurCodeDecl);
FunctionDecl *FD = const_cast<FunctionDecl *>(CFD);
llvm::SmallVector<ParmVarDecl*, 16> Params;
OpenPOWER on IntegriCloud