More codegen for blocks. The type of block literals should be better.
The size calculation is improved.
llvm-svn: 64994
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index 15dab8f..651a283 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -614,6 +614,9 @@
std::string S(Literal->getStrData(), Literal->getByteLength());
return CGM.GetAddrOfConstantCFString(S);
}
+ case Expr::BlockExprClass: {
+ return CGF->BuildBlockLiteralTmp(cast<BlockExpr>(E));
+ }
}
return 0;