diff options
author | Rui Ueyama <ruiu@google.com> | 2017-09-28 00:27:39 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-09-28 00:27:39 +0000 |
commit | 5908845a7e7c6db39e100246a3875f519f5d1f97 (patch) | |
tree | e3fd1d0264b0fc423963d896b243bdb244c5cd86 /llvm/lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 64094f86212d6b81434cb7c26e965ff53f1e3fa0 (diff) | |
download | llvm-5908845a7e7c6db39e100246a3875f519f5d1f97.zip llvm-5908845a7e7c6db39e100246a3875f519f5d1f97.tar.gz llvm-5908845a7e7c6db39e100246a3875f519f5d1f97.tar.bz2 |
Fix a UBsan bot.
If we do not initialize Prefix here, Prefix.data() returns a nullptr.
Later, it is passed to memcpy. memcpy's behavior is undefined if src (or
dst) is a nullptr even if a given size is 0. That's why this code
triggered UBsan.
llvm-svn: 314368
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
0 files changed, 0 insertions, 0 deletions