mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[ARM] const cast fix for ARMAttributeParser test
GCC 4.8 produced a cast qualifier warning, so replaced with C++ style const cast. llvm-svn: 293764
This commit is contained in:
parent
6a2c70d04d
commit
eadf9d9ea9
@ -26,12 +26,13 @@ struct AttributeSection {
|
||||
};
|
||||
|
||||
bool testBuildAttr(unsigned Tag, unsigned Value,
|
||||
unsigned ExpectedTag, unsigned ExpectedValue) {
|
||||
unsigned ExpectedTag, unsigned ExpectedValue) {
|
||||
std::string buffer;
|
||||
raw_string_ostream OS(buffer);
|
||||
AttributeSection Section(Tag, Value);
|
||||
Section.write(OS);
|
||||
ArrayRef<uint8_t> Bytes((uint8_t*)OS.str().c_str(), OS.str().size());
|
||||
ArrayRef<uint8_t> Bytes(
|
||||
reinterpret_cast<const uint8_t*>(OS.str().c_str()), OS.str().size());
|
||||
|
||||
ARMAttributeParser Parser;
|
||||
Parser.Parse(Bytes, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user