// 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;
}
if (GlobalVariableChange) {
- DIC.replaceGlobalVariables(DIArray(MDNode::get(C, LiveGlobalVariables)));
+ DIC.replaceGlobalVariables(MDTuple::get(C, LiveGlobalVariables));
Changed = true;
}