diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-11-09 21:17:38 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-11-09 21:17:38 +0000 |
commit | 42ab39f1e8fb4a6c30c77988ed01e0cc663d1e00 (patch) | |
tree | d6b624148dee7a5ba2c80788cec219c0cef83d30 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | ef67ce0f6f979085271d6402dcb38bf90f878c65 (diff) | |
download | bcm5719-llvm-42ab39f1e8fb4a6c30c77988ed01e0cc663d1e00.tar.gz bcm5719-llvm-42ab39f1e8fb4a6c30c77988ed01e0cc663d1e00.zip |
Revert "Revert rL346454: Fix a use-after-free introduced by r344915."
This un-reverts commit 346454 with a relaxed CHECK for Windows.
llvm-svn: 346556
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 1d999e446cc..81cc07dddd1 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -3538,7 +3538,7 @@ void CGDebugInfo::EmitLocation(CGBuilderTy &Builder, SourceLocation Loc) { // Update our current location setLocation(Loc); - if (CurLoc.isInvalid() || CurLoc.isMacroID()) + if (CurLoc.isInvalid() || CurLoc.isMacroID() || LexicalBlockStack.empty()) return; llvm::MDNode *Scope = LexicalBlockStack.back(); |