For better compatibility with C++11 and C++14, emit a nondiscardable definition
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 23 Oct 2017 03:58:34 +0000 (03:58 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 23 Oct 2017 03:58:34 +0000 (03:58 +0000)
commit8910fe699e88f57eac891b5075659e6eb2cfdee2
tree33f5c6a9f3e6b180bd89b87a6cdee56405bc71a8
parent64cb997ce18ad000a9ced4f49744aa385deef730
For better compatibility with C++11 and C++14, emit a nondiscardable definition
of a static constexpr data member if it's defined 'constexpr' out of line, not
only if it's defined 'constexpr' in the class.

llvm-svn: 316310
clang/lib/AST/ASTContext.cpp
clang/test/CodeGenCXX/cxx1z-inline-variables.cpp