Skip to content
Commit cb9ad990 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

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.

llvm-svn: 162850
parent 7a837b9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment