commit | 359c89df5479810c9d4784fc0b6ab592eb136777 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Feb 24 22:12:32 2012 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Feb 24 22:12:32 2012 +0000 |
tree | d8904c4794928f823197cac4abce2e1c1b6d42d5 | |
parent | f329527bbeae86c8eac6eea6efaa20e807c16679 [diff] |
When checking whether a reference to a variable is an ICE, look at the type of the declaration, not at the type of the DeclRefExpr, since within a lambda the DeclRefExpr can be more const than the declaration is. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151399 91177308-0d34-0410-b5e6-96231b3b80d8