Fix compilation failure

llvm-svn: 104613
This commit is contained in:
Douglas Gregor 2010-05-25 17:12:30 +00:00
parent 36caaf1c59
commit 02df9da2ac
1 changed files with 2 additions and 2 deletions

View File

@ -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);