diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-09 17:41:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-09 17:41:47 +0000 |
commit | a5f58b05e82a06b5491c74d3a18c3ee1c749f77b (patch) | |
tree | 3de2a264c644e13e02ae7bf60329e62ad8f50901 /clang/lib/CodeGen/CGDeclCXX.cpp | |
parent | b1ed91f3978377294d4620c53ca81beed08b73c7 (diff) | |
download | llvm-a5f58b05e82a06b5491c74d3a18c3ee1c749f77b.zip llvm-a5f58b05e82a06b5491c74d3a18c3ee1c749f77b.tar.gz llvm-a5f58b05e82a06b5491c74d3a18c3ee1c749f77b.tar.bz2 |
clang side to match the LLVM IR type system rewrite patch.
llvm-svn: 134831
Diffstat (limited to 'clang/lib/CodeGen/CGDeclCXX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDeclCXX.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDeclCXX.cpp b/clang/lib/CodeGen/CGDeclCXX.cpp index 42a07df..9c400e7 100644 --- a/clang/lib/CodeGen/CGDeclCXX.cpp +++ b/clang/lib/CodeGen/CGDeclCXX.cpp @@ -117,12 +117,13 @@ CodeGenFunction::EmitCXXGlobalDtorRegistration(llvm::Constant *DtorFn, } // Get the destructor function type - const llvm::Type *DtorFnTy = + llvm::Type *ArgTys[] = { Int8PtrTy }; + llvm::Type *DtorFnTy = llvm::FunctionType::get(llvm::Type::getVoidTy(getLLVMContext()), - Int8PtrTy, false); + ArgTys, false); DtorFnTy = llvm::PointerType::getUnqual(DtorFnTy); - const llvm::Type *Params[] = { DtorFnTy, Int8PtrTy, Int8PtrTy }; + llvm::Type *Params[] = { DtorFnTy, Int8PtrTy, Int8PtrTy }; // Get the __cxa_atexit function type // extern "C" int __cxa_atexit ( void (*f)(void *), void *p, void *d ); |