diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-05-02 17:30:16 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-05-02 17:30:16 +0000 |
commit | f1b28a5dbc127bdd89742cc5aa58f3703cd97469 (patch) | |
tree | 8c5f9781e35488b3d7591b617e9dfc56d051424b /clang/lib | |
parent | e55f77aec8937d73c2268d5a01c1eb8adb49757c (diff) | |
download | bcm5719-llvm-f1b28a5dbc127bdd89742cc5aa58f3703cd97469.tar.gz bcm5719-llvm-f1b28a5dbc127bdd89742cc5aa58f3703cd97469.zip |
Use a more idiomatic way to disable debug locations.
llvm-svn: 180931
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index f49198a9bfb..dd0ef41750d 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -1169,11 +1169,9 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, Alloca->setAlignment(Align); // Set the DebugLocation to empty, so the store is recognized as a // frame setup instruction by llvm::DwarfDebug::beginFunction(). - llvm::DebugLoc Empty; - llvm::DebugLoc Loc = Builder.getCurrentDebugLocation(); - Builder.SetCurrentDebugLocation(Empty); + Builder.DisableDebugLocations(); Builder.CreateAlignedStore(BlockPointer, Alloca, Align); - Builder.SetCurrentDebugLocation(Loc); + Builder.EnableDebugLocations(); BlockPointerDbgLoc = Alloca; } |