summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSean Perry <perry@ca.ibm.com>2021-03-26 16:37:29 -0400
committerMuiez Ahmed <muiez@ibm.com>2021-03-26 16:38:36 -0400
commit7e0cc45ced230b4ef3a9d8eaedfbe92e75f21916 (patch)
tree4d0f2fb1c1b3c34cbe18c2ed943ce07c7952bc74 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent4622648a069a988d3b7b3ecd3f1b6993518d85b5 (diff)
[SystemZ][z/OS] Save strings for CC_PRINT env vars
The contents of the string returned by getenv() is not guaranteed across calls to getenv(). The code to handle the CC_PRINT etc env vars calls getenv() and saves the results in just a char *. The string returned by getenv() needs to be copied and saved. Switching the type of the strings from char * to std::string will do this and manage the alloated memory. Differential Revision: https://reviews.llvm.org/D98554
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions