Fix UBSan report in StringMap implementation.
authorAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Dec 2014 22:45:31 +0000 (22:45 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Thu, 4 Dec 2014 22:45:31 +0000 (22:45 +0000)
commit8bc006707164952c3b0fc4dcc4f7c3d68e34c4ab
tree6a7de151c8f66b58b21bb7ebbb40d38fd6f0e210
parentfb8dcb45c614beadceea5672d455cb0cd431d2ec
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
include/llvm/ADT/StringMap.h