summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-05-10 16:31:55 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-05-10 16:31:55 +0000
commit10ffef9f56b83f157d16137bad682f9e59753dc4 (patch)
treeebb323c3630577c93d0eed094456e1bccefc90b9 /lib/CodeGen/CGDebugInfo.cpp
parent39b4d625bb49250cbaa638be35c2ef0b7c8efb6c (diff)
downloadclang-10ffef9f56b83f157d16137bad682f9e59753dc4.tar.gz
clang-10ffef9f56b83f157d16137bad682f9e59753dc4.tar.bz2
clang-10ffef9f56b83f157d16137bad682f9e59753dc4.tar.xz
Decouple ExprCXX.h and DeclCXX.h and clean up includes a bit.
Required pulling LambdaExpr::Capture into its own header. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index c4c2644386..4279e4985e 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -830,7 +830,7 @@ CollectRecordLambdaFields(const CXXRecordDecl *CXXDecl,
unsigned fieldno = 0;
for (CXXRecordDecl::capture_const_iterator I = CXXDecl->captures_begin(),
E = CXXDecl->captures_end(); I != E; ++I, ++Field, ++fieldno) {
- const LambdaExpr::Capture C = *I;
+ const LambdaCapture &C = *I;
if (C.capturesVariable()) {
VarDecl *V = C.getCapturedVar();
llvm::DIFile VUnit = getOrCreateFile(C.getLocation());