aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-23 05:30:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-23 05:30:36 +0000
commit42719fc8145cb0da244b1826551e6b441db89209 (patch)
tree1333e7df5e0279875bae684907b47130f360a2d3 /lib/CodeGen/CodeGenFunction.cpp
parent527e5429989782aef5411a18bf01cc9b4170fde1 (diff)
Shield clang from LLVM API changes, until the dust settles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 962f8a0950..80cfeff7f3 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/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);
}
}