From e655657c94b20710e65fd20da2a7f622ed6a0e1c Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 29 Sep 2011 00:00:35 +0000 Subject: Call UpdateLineDirectiveRegion every time we want to emit a stop point in the code. Ensures that we don't miss any places and the check is reasonably cheap. llvm-svn: 140737 --- clang/lib/CodeGen/CGDebugInfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp') diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index b48475f432a..2edb065dd6e 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1763,6 +1763,10 @@ void CGDebugInfo::EmitStopPoint(CGBuilderTy &Builder) { if (!Builder.getCurrentDebugLocation().isUnknown()) return; + // The file may have had a line directive change. Process any of + // those before updating the state. + UpdateLineDirectiveRegion(Builder); + // Update last state. PrevLoc = CurLoc; -- cgit v1.2.3