Fix a "memset clearing an object of non-trivial type" warning in DWARFFormValue
authorPavel Labath <pavel@labath.sk>
Wed, 27 Mar 2019 10:02:36 +0000 (10:02 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 27 Mar 2019 10:02:36 +0000 (10:02 +0000)
commitab0f18076b11972429e7d04cb818582f949f03b5
tree27788adc31490421a6cf9dd883dc825151c713af
parentcf6c19c2d35c4dc22fc6e3c405ab7a4071848fc2
Fix a "memset clearing an object of non-trivial type" warning in DWARFFormValue

This is diagnosed by gcc-8. The ValueType struct already has a default
constructor which performs zero-initialization, so we can just call that
instead of using memset.

llvm-svn: 357056
lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp