diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-02 03:19:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-02 03:19:07 +0000 |
commit | 3f3dbeedd391f10a410aa8fff5a9c95055ce214c (patch) | |
tree | 6987d1ac5f29af14a836b2faa2e7554c445b87d0 /clang/CodeGen/CodeGenFunction.cpp | |
parent | adb6372aa58456513b3db54ed552aefb61b6d887 (diff) | |
download | bcm5719-llvm-3f3dbeedd391f10a410aa8fff5a9c95055ce214c.tar.gz bcm5719-llvm-3f3dbeedd391f10a410aa8fff5a9c95055ce214c.zip |
implement codegen support for return of void and simple scalars.
llvm-svn: 39547
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()); |