From c0e55cd4046e21786ba92a6f676aa42d41496dd5 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Mon, 3 Mar 2014 18:53:32 +0000 Subject: [PATCH] Update call DIBuilder::createLexicalBlock. Create lexical blocks with discriminator value 0 by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202737 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index d7321791d8..633078fb3b 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -2596,7 +2596,8 @@ void CGDebugInfo::CreateLexicalBlock(SourceLocation Loc) { llvm::DIDescriptor(LexicalBlockStack.back()), getOrCreateFile(CurLoc), getLineNumber(CurLoc), - getColumnNumber(CurLoc)); + getColumnNumber(CurLoc), + 0); llvm::MDNode *DN = D; LexicalBlockStack.push_back(DN); } -- 2.40.0