diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-11-20 02:36:38 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-11-20 02:36:38 +0000 |
| commit | b14fc390dc2fbaf2da2b4869fd4f5c97fa93e528 (patch) | |
| tree | 45fe04d27d2b1f6e9684f42d5bc6c40cb5a8821a /llvm/lib/Support/CommandLine.cpp | |
| parent | c0e4e7d9906fdb9a0a48cedcceb8c40591e52ea7 (diff) | |
| download | bcm5719-llvm-b14fc390dc2fbaf2da2b4869fd4f5c97fa93e528.tar.gz bcm5719-llvm-b14fc390dc2fbaf2da2b4869fd4f5c97fa93e528.zip | |
ExceptionDemo: remove some undefined behaviour
The casting based reading of the LSDA could attempt to read unsuitably aligned
data. Avoid that case by explicitly using a memcpy. A similar approach is used
in libc++abi to address the same UB.
llvm-svn: 287479
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions

