diff options
author | Haojian Wu <hokein@google.com> | 2018-08-20 13:12:54 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2018-08-20 13:12:54 +0000 |
commit | 54829bb3ff750cf8061fcd82db46f3596fa9cbac (patch) | |
tree | 5944f6cdf3edeb19ffb03c05aea502f5f74f3bbf /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5b78c9d58d9043db6a9c4ca489a40486375776d8 (diff) | |
download | bcm5719-llvm-54829bb3ff750cf8061fcd82db46f3596fa9cbac.tar.gz bcm5719-llvm-54829bb3ff750cf8061fcd82db46f3596fa9cbac.zip |
Fix an undefined behavior when storing an empty StringRef.
Summary: Passing a nullptr to memcpy is UB.
Reviewers: ioeric
Subscribers: llvm-commits, cfe-commits
Differential Revision: https://reviews.llvm.org/D50966
llvm-svn: 340170
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions