Index: unittests/Support/ARMAttributeParser.cpp =================================================================== --- unittests/Support/ARMAttributeParser.cpp +++ unittests/Support/ARMAttributeParser.cpp @@ -26,12 +26,13 @@ }; 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 Bytes((uint8_t*)OS.str().c_str(), OS.str().size()); + ArrayRef Bytes( + reinterpret_cast(OS.str().c_str()), OS.str().size()); ARMAttributeParser Parser; Parser.Parse(Bytes, true);