diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-13 10:07:13 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-13 10:07:13 +0000 |
commit | abd5b90e4c9529f92621cc37baff8e326930f63f (patch) | |
tree | de9c0e4ce2571b100191bef4d2589cb41f74574f /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 1008612b366dca8b6271758ad5f6c7bbbae3ffa3 (diff) | |
download | bcm5719-llvm-abd5b90e4c9529f92621cc37baff8e326930f63f.tar.gz bcm5719-llvm-abd5b90e4c9529f92621cc37baff8e326930f63f.zip |
Simplify pointer creation with the new Type::getInt*Ptr methods.
llvm-svn: 83964
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 79950e8c6be..736425e0127 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -414,8 +414,7 @@ RValue CodeGenFunction::EmitBlockCallExpr(const CallExpr* E) { BlockLiteral = Builder.CreateBitCast(BlockLiteral, - llvm::PointerType::getUnqual( - llvm::Type::getInt8Ty(VMContext)), + llvm::Type::getInt8PtrTy(VMContext), "tmp"); // Add the block literal. |