[llvm-commits] [llvm-gcc-4.2] r83683 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Fri Oct 9 15:36:19 PDT 2009
Author: dpatel
Date: Fri Oct 9 17:36:18 2009
New Revision: 83683
URL: http://llvm.org/viewvc/llvm-project?rev=83683&view=rev
Log:
If regionstack is empty the there is no need to emit stop point.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=83683&r1=83682&r2=83683&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Fri Oct 9 17:36:18 2009
@@ -378,6 +378,8 @@
if (!isPartOfAppleBlockPrologue(CurLineNo)
&& !isCopyOrDestroyHelper(cfun->decl)) {
#ifdef ATTACH_DEBUG_INFO_TO_AN_INSN
+ if (RegionStack.empty())
+ return;
llvm::DIDescriptor DR = RegionStack.back();
llvm::DIScope DS = llvm::DIScope(DR.getNode());
llvm::DILocation DO(NULL);
More information about the llvm-commits
mailing list