Add a debug statement.
authorEric Christopher <echristo@apple.com>
Mon, 26 Mar 2012 06:10:32 +0000 (06:10 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 26 Mar 2012 06:10:32 +0000 (06:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153428 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 6ec38c57b18d8b5dba6c44deaa8833a6f5ced9f8..4062ae97a492fdeb0d8d4a040a6a8d5d6c2be451 100644 (file)
@@ -4696,8 +4696,10 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
       V = BCI->getOperand(0);
     const AllocaInst *AI = dyn_cast<AllocaInst>(V);
     // Don't handle byval struct arguments or VLAs, for example.
-    if (!AI)
+    if (!AI) {
+      DEBUG(dbgs() << "Dropping debug location info for:\n\t" << DI << "\n");
       return 0;
+    }
     DenseMap<const AllocaInst*, int>::iterator SI =
       FuncInfo.StaticAllocaMap.find(AI);
     if (SI == FuncInfo.StaticAllocaMap.end())