aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-08-29 18:27:29 +0000
committerHans Wennborg <hans@hanshq.net>2012-08-29 18:27:29 +0000
commitcb9ad9908bc4fd27625fd9960081d2c3943dfb6d (patch)
tree2c420ffb2dd2a8d26052f797e1b00ba8afd3a4e7 /llvm/lib/CodeGen/MachineInstr.cpp
parent7a837b9a76b229ca8bb52392b9c55d29f557daaa (diff)
downloadllvm-cb9ad9908bc4fd27625fd9960081d2c3943dfb6d.zip
llvm-cb9ad9908bc4fd27625fd9960081d2c3943dfb6d.tar.gz
llvm-cb9ad9908bc4fd27625fd9960081d2c3943dfb6d.tar.bz2
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions