File tree Expand file tree Collapse file tree 2 files changed +5
-39
lines changed Expand file tree Collapse file tree 2 files changed +5
-39
lines changed Original file line number Diff line number Diff line change @@ -4022,11 +4022,6 @@ bool CodeGenModule::shouldEmitFunction(GlobalDecl GD) {
40224022 return true ;
40234023
40244024 const auto *F = cast<FunctionDecl>(GD.getDecl ());
4025- // Inline builtins declaration must be emitted. They often are fortified
4026- // functions.
4027- if (F->isInlineBuiltinDeclaration ())
4028- return true ;
4029-
40304025 if (CodeGenOpts.OptimizationLevel == 0 && !F->hasAttr <AlwaysInlineAttr>())
40314026 return false ;
40324027
@@ -4072,6 +4067,11 @@ bool CodeGenModule::shouldEmitFunction(GlobalDecl GD) {
40724067 }
40734068 }
40744069
4070+ // Inline builtins declaration must be emitted. They often are fortified
4071+ // functions.
4072+ if (F->isInlineBuiltinDeclaration ())
4073+ return true ;
4074+
40754075 // PR9614. Avoid cases where the source code is lying to us. An available
40764076 // externally function should have an equivalent function somewhere else,
40774077 // but a function that calls itself through asm label/`__builtin_` trickery is
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments