diff options
| author | John McCall <rjmccall@apple.com> | 2012-04-13 02:53:27 +0000 | 
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2012-04-13 02:53:27 +0000 | 
| commit | 32233a7c1ae04432a9d12c0d9f029cce552ec24a (patch) | |
| tree | 8bac1b52daa04232896171bcf2d192cfac778f50 /clang/lib/CodeGen | |
| parent | f958f348c818a53c99efc3ad260340cddc98e57f (diff) | |
| download | bcm5719-llvm-32233a7c1ae04432a9d12c0d9f029cce552ec24a.tar.gz bcm5719-llvm-32233a7c1ae04432a9d12c0d9f029cce552ec24a.zip | |
Fix a trivial oversight with apple-kext static local destructors
and add a test case.
llvm-svn: 154653
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDeclCXX.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/clang/lib/CodeGen/CGDeclCXX.cpp b/clang/lib/CodeGen/CGDeclCXX.cpp index 99d50312b52..10f0b83e405 100644 --- a/clang/lib/CodeGen/CGDeclCXX.cpp +++ b/clang/lib/CodeGen/CGDeclCXX.cpp @@ -244,6 +244,7 @@ void CodeGenFunction::EmitCXXGlobalDtorRegistration(llvm::Constant *dtor,    if (CGM.getContext().getLangOpts().AppleKext) {      // Generate a global destructor entry.      CGM.AddCXXDtorEntry(dtor, addr); +    return;    }    // Otherwise, we just use atexit. | 

