diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-15 18:45:27 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-15 18:45:27 +0000 |
commit | 07538ad975994123317fe5b32daed4bf28683a1d (patch) | |
tree | 907f56f9d743b0ac6b85cf98ea7cd8283c14b415 /lib/CodeGen | |
parent | 38306d53f9319d0a36a059b229b807578cb2e5c5 (diff) | |
download | external_llvm-07538ad975994123317fe5b32daed4bf28683a1d.zip external_llvm-07538ad975994123317fe5b32daed4bf28683a1d.tar.gz external_llvm-07538ad975994123317fe5b32daed4bf28683a1d.tar.bz2 |
Fix crash reported in PR7653.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 4f38669..fb3f7c0 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/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; } |