commit | 1432a43e3076eec84967305bd85bace3a6e9102b | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Sun Oct 28 06:18:02 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Sun Oct 28 06:18:02 2012 +0000 |
tree | 112d10cc911d1b2e37f4d255728b42b7a71542aa | |
parent | 623ef4bf31bc5ec14ed9b5645921a0a2e0d00ee4 [diff] |
When determining whether to try evaluating the initializer of a variable, check whether the initializer is value-dependent rather than whether we are in a dependent context. This allows us to detect some errors sooner, and fixes a crash-on-invalid if a dependent type leaks out to a non-dependent context in error recovery. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166898 91177308-0d34-0410-b5e6-96231b3b80d8