diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-08 01:31:09 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-11-08 01:31:09 +0000 |
| commit | ec8dcd2716e8cfd651b096eaa843f721ca8001e0 (patch) | |
| tree | 8e64c736423f869f8ae5e0dbddc6b57ac17d6944 /lldb/source/Commands/CommandObjectProcess.cpp | |
| parent | f2a9bd4b1ec21ed04fdac9b7120582eb6f800486 (diff) | |
| download | llvm-ec8dcd2716e8cfd651b096eaa843f721ca8001e0.zip llvm-ec8dcd2716e8cfd651b096eaa843f721ca8001e0.tar.gz llvm-ec8dcd2716e8cfd651b096eaa843f721ca8001e0.tar.bz2 | |
Fix a cluster of related issues involving value-dependence and constant
expression evaluation:
- When folding a non-value-dependent expression, we may try to use the
initializer of a value-dependent variable. If that happens, give up.
- In C++98, actually check that a const, non-volatile DeclRefExpr inside an ICE
is of integral or enumeration type (a reference isn't OK!)
- In C++11, DeclRefExprs for objects of const literal type initialized with
value-dependent expressions are themselves value-dependent.
- So are references initialized with value-dependent expressions (though this
case is missing from the C++11 standard, along with many others).
llvm-svn: 144056
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions
