This commit prevents accessing invalid memory.
Full warning message (cmake version 3.28.1):
Chapter07/tinylang/lib/CodeGen/CGTBAA.cpp:68:22: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
StringRef Name = CGM.mangleName(Record);
^~~~~~
This commit prevents accessing invalid memory. Full warning message (cmake version 3.28.1): Chapter07/tinylang/lib/CodeGen/CGTBAA.cpp:68:22: warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl] StringRef Name = CGM.mangleName(Record); ^
~~~~~