summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-07-15 18:45:27 +0000
committerDevang Patel <dpatel@apple.com>2010-07-15 18:45:27 +0000
commitdf09db62e223b093aed64233d8daf86dc435c59f (patch)
tree16ddf1ce55b1a5816b695e735b026f68eab3f227 /llvm/lib/CodeGen
parent030b0286ec1f99ff1cf35aa79f2eb65d4d495165 (diff)
downloadbcm5719-llvm-df09db62e223b093aed64233d8daf86dc435c59f.tar.gz
bcm5719-llvm-df09db62e223b093aed64233d8daf86dc435c59f.zip
Fix crash reported in PR7653.
llvm-svn: 108441
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 4f3866956ca..fb3f7c07d0c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -2476,7 +2476,7 @@ void TargetLowering::LowerAsmOperandForConstraint(SDValue Op,
int64_t Offs = GA->getOffset();
if (C) Offs += C->getZExtValue();
Ops.push_back(DAG.getTargetGlobalAddress(GA->getGlobal(),
- C->getDebugLoc(),
+ C ? C->getDebugLoc() : DebugLoc(),
Op.getValueType(), Offs));
return;
}
OpenPOWER on IntegriCloud