summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-05-01 18:49:04 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-05-01 18:49:04 +0000
commiteec904f849e2191fbe84dbbdae223c88dd66fa37 (patch)
treea8794a089b337df06880c413d9dd803bdd688bae /llvm/lib
parentcfe4b5ca15ca2dc93c6f938fe18094e24701cd71 (diff)
downloadbcm5719-llvm-eec904f849e2191fbe84dbbdae223c88dd66fa37.tar.gz
bcm5719-llvm-eec904f849e2191fbe84dbbdae223c88dd66fa37.zip
Improve handling of arrays of unknown bound in constant expressions.
Do not spuriously reject constexpr functions that access elements of an array of unknown bound; this may later become valid once the bound is known. Permit array-to-pointer decay on such arrays, but disallow pointer arithmetic (since we do not know whether it will have defined behavior). The standard is not clear on how this should work, but this seems to be a decent answer. Patch by Robert Haberlach! llvm-svn: 301822
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud