aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/CGDeclCXX.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDeclCXX.cpp b/lib/CodeGen/CGDeclCXX.cpp
index 99d50312b5..10f0b83e40 100644
--- a/lib/CodeGen/CGDeclCXX.cpp
+++ b/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.