diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 22:12:32 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 22:12:32 +0000 |
| commit | 6365c9138e26add7d5ee99b74ad4edd309024c3c (patch) | |
| tree | 12cf6da28b78c96389bd668c2c5e732a9edc3bf3 /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 9fceb90175f1fd40ab69015e18804d5d78781ffd (diff) | |
| download | llvm-6365c9138e26add7d5ee99b74ad4edd309024c3c.zip llvm-6365c9138e26add7d5ee99b74ad4edd309024c3c.tar.gz llvm-6365c9138e26add7d5ee99b74ad4edd309024c3c.tar.bz2 | |
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.
llvm-svn: 151399
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
