mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-23 17:48:03 +00:00
[YAML] Fix undefined behavior.
llvm-svn: 172338
This commit is contained in:
parent
2827a7ec6b
commit
74ba722be1
@ -884,9 +884,11 @@ struct MappingTraits<const lld::DefinedAtom*> {
|
||||
virtual ContentPermissions permissions() const { return _permissions; }
|
||||
virtual bool isThumb() const { return false; }
|
||||
virtual bool isAlias() const { return false; }
|
||||
ArrayRef<uint8_t> rawContent() const {
|
||||
return ArrayRef<uint8_t>((uint8_t*)&_content.operator[](0),
|
||||
_content.size()); }
|
||||
ArrayRef<uint8_t> rawContent() const {
|
||||
return ArrayRef<uint8_t>(
|
||||
reinterpret_cast<const uint8_t *>(_content.data()), _content.size());
|
||||
}
|
||||
|
||||
virtual uint64_t ordinal() const { return 0; }
|
||||
|
||||
reference_iterator begin() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user