author | Alexey Samsonov <vonosmas@gmail.com> | |
Thu, 4 Dec 2014 22:45:31 +0000 (22:45 +0000) | ||
committer | Alexey Samsonov <vonosmas@gmail.com> | |
Thu, 4 Dec 2014 22:45:31 +0000 (22:45 +0000) | ||
commit | 8bc006707164952c3b0fc4dcc4f7c3d68e34c4ab | |
tree | 6a7de151c8f66b58b21bb7ebbb40d38fd6f0e210 | tree | snapshot (tar.xz tar.gz zip) |
parent | fb8dcb45c614beadceea5672d455cb0cd431d2ec | commit | diff |
Fix UBSan report in StringMap implementation.
Use offsetof() instead of a member access within null pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223402 91177308-0d34-0410-b5e6-96231b3b80d8
Use offsetof() instead of a member access within null pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223402 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringMap.h | diff | blob | history |