summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-07-17 05:48:48 +0000
committerEric Fiselier <eric@efcs.ca>2018-07-17 05:48:48 +0000
commit81d0dbda79f8db7f64dc3c34ac544adac45f358c (patch)
tree96e2cfbf5c51e269ba0b3fec1b30872a4cbf7a6c /llvm/lib/Target/Sparc
parentc376a1916b87e2c6330dc43cf9d49acf3ad33a3b (diff)
downloadbcm5719-llvm-81d0dbda79f8db7f64dc3c34ac544adac45f358c.tar.gz
bcm5719-llvm-81d0dbda79f8db7f64dc3c34ac544adac45f358c.zip
Address "always inline function is not always inlinable" warning with GCC.
When an always_inline function is used prior to the functions definition, the compiler may not be able to inline it as requested by the attribute. GCC flags the `basic_string(CharT const*)` function as one such example. This patch supresses the warning, and the problem, by moving the definition of the string constructor to the inline declaration. This ensures the body is available when it is first ODR used. llvm-svn: 337235
Diffstat (limited to 'llvm/lib/Target/Sparc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud