diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/StripSymbols.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/StripSymbols.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/StripSymbols.cpp b/llvm/lib/Transforms/IPO/StripSymbols.cpp index 10066958300..b507f972c8b 100644 --- a/llvm/lib/Transforms/IPO/StripSymbols.cpp +++ b/llvm/lib/Transforms/IPO/StripSymbols.cpp @@ -335,7 +335,7 @@ bool StripDeadDebugInfo::runOnModule(Module &M) { // If the global variable referenced by DIG is not null, the global // variable is live. - if (DIG.getConstant()) + if (DIG->getVariable()) LiveGlobalVariables.push_back(DIG); else GlobalVariableChange = true; @@ -350,7 +350,7 @@ bool StripDeadDebugInfo::runOnModule(Module &M) { } if (GlobalVariableChange) { - DIC.replaceGlobalVariables(DIArray(MDNode::get(C, LiveGlobalVariables))); + DIC.replaceGlobalVariables(MDTuple::get(C, LiveGlobalVariables)); Changed = true; } |

