commit | 48def65d1cfbd020c5d4a7e542a00d63808c6060 | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@hanshq.net> | Wed Aug 29 18:27:29 2012 +0000 |
committer | Hans Wennborg <hans@hanshq.net> | Wed Aug 29 18:27:29 2012 +0000 |
tree | 97d1b602c763b18efa9a255c07257fd33244bf88 | |
parent | a414a2f3ae818953c88443bd617aa89a2b7712e5 [diff] |
Move TLS check from LValueExprEvaluator::VisitVarDecl to CheckLValueConstantExpression. Richard pointed out that using the address of a TLS variable is ok in a core C++11 constant expression, as long as it isn't part of the eventual result of constant expression evaluation. Having the check in CheckLValueConstantExpression accomplishes this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162850 91177308-0d34-0410-b5e6-96231b3b80d8