diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-27 16:19:21 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-06-27 16:21:44 +0200 |
| commit | f025053977f330152da081b7060a5d9cba0a9e22 (patch) | |
| tree | d261a21cd0109a2aaa087874755644f20a401cb1 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 153da08a6cd7feea6644b3191019573d70a5bbd3 (diff) | |
[MemCpyOpt] Handle unusual memcpy element type
Apparently, it is legal to use memcpy/memset with pointer types
other than i8*. Prior to 81fcdae68c5ff656c30032fd26c6a21af4c51dbb
this case was silently miscompiled, as the i8 offset calculation
was performed on some other type. Now it would crash due to a
type mismatch. Fix this by inserting an explicit bitcast to i8*.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
