From 02df9da2ac684a3e305cdcf363382a91a62cd57b Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 25 May 2010 17:12:30 +0000 Subject: [PATCH] Fix compilation failure llvm-svn: 104613 --- clang/lib/CodeGen/CGBlocks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index dcae95f3de19..de58597e298d 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/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);