commit | 4ef0321f497397e58d7293973f6ed24253435f1d | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Thu Jul 15 18:45:27 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Thu Jul 15 18:45:27 2010 +0000 |
tree | 907f56f9d743b0ac6b85cf98ea7cd8283c14b415 | |
parent | 1ff672189788b92641eb9fd8659712710f54bbd8 [diff] [blame] |
Fix crash reported in PR7653. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108441 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@ 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; }