commit | 0d881dabc1a4e1aefad6dd38de166d8358285638 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Jul 06 22:08:15 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Jul 06 22:08:15 2010 +0000 |
tree | 886287ca04ed32ed2a0f1a1e1d28b4064ed749fb | |
parent | f967ca0eaf30325cabe3c1971bf0dba16cf1b027 [diff] [blame] |
Propagate debug loc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107710 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index a40c429..9418e54 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -852,7 +852,7 @@ return DAG.getConstant(*CI, VT); if (const GlobalValue *GV = dyn_cast<GlobalValue>(C)) - return DAG.getGlobalAddress(GV, VT); + return DAG.getGlobalAddress(GV, getCurDebugLoc(), VT); if (isa<ConstantPointerNull>(C)) return DAG.getConstant(0, TLI.getPointerTy());