aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/ArchitectureSet.cpp
diff options
context:
space:
mode:
authorPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-02-25 12:49:12 -0600
committerPeyton, Jonathan L <jonathan.l.peyton@intel.com>2021-04-05 09:03:09 -0500
commit2aebb7cb3c88b1446515563653c821e8165b3aaf (patch)
tree1cea176f080e07340c514b1709f294ba78622fb1 /llvm/lib/TextAPI/ArchitectureSet.cpp
parent00a84f9a7f8916e024243e2685db4c11d06ecf75 (diff)
downloadllvm-2aebb7cb3c88b1446515563653c821e8165b3aaf.zip
llvm-2aebb7cb3c88b1446515563653c821e8165b3aaf.tar.gz
llvm-2aebb7cb3c88b1446515563653c821e8165b3aaf.tar.bz2
[OpenMP] Fix incorrect KMP_STRLEN() macro
The second argument to the strnlen_s(str, size) function should be sizeof(str) when str is a true array of characters with known size (instead of just a char*). Use type traits to determine if first parameter is a character array and use the correct size based on that trait. Differential Revision: https://reviews.llvm.org/D98209
Diffstat (limited to 'llvm/lib/TextAPI/ArchitectureSet.cpp')
0 files changed, 0 insertions, 0 deletions