diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 05:30:36 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 05:30:36 +0000 |
| commit | 7c02cf609d65e9fad58844373d524ff779aa2ded (patch) | |
| tree | 3e13363345e08351ce9ed27ad76865861f05b8fb /clang/lib | |
| parent | b4ff7de8bd3fd4f255d4f2cc8178427826df7d97 (diff) | |
| download | bcm5719-llvm-7c02cf609d65e9fad58844373d524ff779aa2ded.tar.gz bcm5719-llvm-7c02cf609d65e9fad58844373d524ff779aa2ded.zip | |
Shield clang from LLVM API changes, until the dust settles.
llvm-svn: 76862
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 962f8a09505..80cfeff7f33 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -177,7 +177,9 @@ void CodeGenFunction::StartFunction(const Decl *D, QualType RetTy, DI->EmitFunctionStart(CGM.getMangledName(FD), RetTy, CurFn, Builder); } else { // Just use LLVM function name. - DI->EmitFunctionStart(Fn->getName().c_str(), + + // FIXME: Remove unnecessary conversion to std::string when API settles. + DI->EmitFunctionStart(std::string(Fn->getName()).c_str(), RetTy, CurFn, Builder); } } |

