Do not use getNamedValue() to lookup NamedMDNode. NamedMDNode is not a GlobalValue.