aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-25 17:12:30 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-25 17:12:30 +0000
commit6e5d9b08f852a1052e5a2af4727f6b797e57d578 (patch)
tree95f8980548200aad3338c599d6ecb4ef87839e0d /lib/CodeGen/CGBlocks.cpp
parent35415f5132f70ad5097a3514ab84251e10db3664 (diff)
Fix compilation failure
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r--lib/CodeGen/CGBlocks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index dcae95f3de..de58597e29 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -794,8 +794,8 @@ CodeGenFunction::GenerateBlockFunction(const BlockExpr *BExpr,
MangleBuffer Name;
CGM.getMangledName(Name, BD);
llvm::Function *Fn =
- llvm::Function::Create(LTy, llvm::GlobalValue::InternalLinkage, Name,
- &CGM.getModule());
+ llvm::Function::Create(LTy, llvm::GlobalValue::InternalLinkage,
+ Name.getString(), &CGM.getModule());
CGM.SetInternalFunctionAttributes(BD, Fn, FI);