Refine the constraint for isInlineBuiltinDeclaration
authorserge-sans-paille <sguelton@redhat.com>
Tue, 28 Sep 2021 13:54:43 +0000 (15:54 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Tue, 28 Sep 2021 14:07:33 +0000 (16:07 +0200)
commitbd379915de38a9af3d65e19075a6a64ebbb8d6db
treeff04955ed2f6e689d3e1d5775f9ea1378d5dc3a2
parent1f8bead67820ed3e1ad590ae4f49433c3771f86c
Refine the constraint for isInlineBuiltinDeclaration

Require it to be always_inline, to more closely match how _FORITFY_SOURCE
behaves.

This avoids generation of `.inline` suffixed functions - these should always be
inlined.
clang/lib/AST/Decl.cpp
clang/test/CodeGen/memcpy-nobuiltin.inc