[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c

Reid Spencer reid at x10sys.com
Wed Nov 24 10:54:04 PST 2004



Changes in directory llvm-gcc/gcc:

llvm-expand.c updated: 1.60 -> 1.61
---
Log message:

Make the last change compile with C compilers too.


---
Diffs of the changes:  (+7 -4)

Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.60 llvm-gcc/gcc/llvm-expand.c:1.61
--- llvm-gcc/gcc/llvm-expand.c:1.60	Wed Nov 24 12:47:37 2004
+++ llvm-gcc/gcc/llvm-expand.c	Wed Nov 24 12:53:53 2004
@@ -7617,13 +7617,16 @@
  */
 static void llvm_emit_dbg_stoppoint(llvm_function *Fn, unsigned lineNo, 
                                     unsigned colNo) {
-  // If we're not emitting debug info, just bypass this.
-  if (debug_info_level <= DINFO_LEVEL_NONE)
-    return;
   llvm_instruction *stoppoint_inst;
   llvm_instruction *load_dbg_inst;
   llvm_instruction *store_dbg_inst;
-  llvm_basicblock *CurBB = llvm_ilist_back(llvm_basicblock, Fn->BasicBlocks);
+  llvm_basicblock *CurBB = 0;
+
+  // If we're not emitting debug info, just bypass this.
+  if (debug_info_level <= DINFO_LEVEL_NONE)
+    return;
+
+  CurBB = llvm_ilist_back(llvm_basicblock, Fn->BasicBlocks);
 
   /* Do not emit two consequtive identical stoppoints. */
   if (lineNo == Fn->ExpandInfo->LastDebugLine &&






More information about the llvm-commits mailing list