diff options
author | Eric Christopher <echristo@apple.com> | 2011-10-12 18:39:35 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-10-12 18:39:35 +0000 |
commit | 28e06354b5d4dd539be6781e388ff27c0dffd807 (patch) | |
tree | 6e224a320ad39dcab3b12a05e16bd4a6c97d162e /lib/CodeGen/CGBlocks.cpp | |
parent | d596c4d3f8931f4d479e965bf46d0e7edad85570 (diff) |
Revert file/scope handling patches. gdb testing revealed a couple of bugs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 9694953766..5cbaff908c 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -996,7 +996,7 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, for (BlockDecl::capture_const_iterator ci = blockDecl->capture_begin(), ce = blockDecl->capture_end(); ci != ce; ++ci) { const VarDecl *variable = ci->getVariable(); - DI->EmitLocation(Builder, variable->getLocation()); + DI->setLocation(variable->getLocation()); const CGBlockInfo::Capture &capture = blockInfo.getCapture(variable); if (capture.isConstant()) { |