Debug info for inline static data members was missing the constant value,
because the initializer for these static data members is not always emitted.
Now also try to get the initializer from the templated static data member if
the variable doesn't have an initializer.
(related to discussion on https://bugs.llvm.org/show_bug.cgi?id=47580)
I encountered an assert inside evaluateValue() call :
assert(!Init->isValueDependent());
repro code:
template <int VAL> class A { static constexpr int dep = VAL; }; A<10> a;Note that it crashed with static constexp member but not with static const.