diff options
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp index 6c7b714fb7f..c5c3f5256fe 100644 --- a/clang/CodeGen/CodeGenFunction.cpp +++ b/clang/CodeGen/CodeGenFunction.cpp @@ -116,6 +116,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) { const llvm::FunctionType *Ty = cast<llvm::FunctionType>(ConvertType(FD->getType(), FD->getLocation())); + CurFuncDecl = FD; CurFn = new Function(Ty, Function::ExternalLinkage, FD->getName(), &CGM.getModule()); |