Skip to content

Commit d6ae380

Browse files
committed
Apply to non-min-rt as well
1 parent b5f5194 commit d6ae380

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3585,8 +3585,7 @@ static void emitCheckHandlerCall(CodeGenFunction &CGF,
35853585
ClSanitizeDebugDeoptimization ||
35863586
!CGF.CGM.getCodeGenOpts().OptimizationLevel ||
35873587
(CGF.CurCodeDecl && CGF.CurCodeDecl->hasAttr<OptimizeNoneAttr>());
3588-
// Regular runtime provides a backtrace, making NoMerge a waste of space
3589-
if (NoMerge && MinimalRuntime)
3588+
if (NoMerge)
35903589
HandlerCall->addFnAttr(llvm::Attribute::NoMerge);
35913590
if (!MayReturn) {
35923591
HandlerCall->setDoesNotReturn();

0 commit comments

Comments
 (0)