File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/unittests/ExecutionEngine/Orc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ TEST(MemoryMapperTest, InitializeDeinitialize) {
81
81
{
82
82
// Provide working memory
83
83
char *WA1 = Mapper->prepare (Mem1->Start , HW.size () + 1 );
84
- std::strcpy (static_cast < char *>( WA1) , HW.c_str ());
84
+ std::strcpy (WA1, HW.c_str ());
85
85
}
86
86
87
87
// A structure to be passed to initialize
@@ -106,7 +106,7 @@ TEST(MemoryMapperTest, InitializeDeinitialize) {
106
106
107
107
{
108
108
char *WA2 = Mapper->prepare (Mem1->Start + PageSize, HW.size () + 1 );
109
- std::strcpy (static_cast < char *>( WA2) , HW.c_str ());
109
+ std::strcpy (WA2, HW.c_str ());
110
110
}
111
111
112
112
MemoryMapper::AllocInfo Alloc2;
@@ -159,7 +159,7 @@ TEST(MemoryMapperTest, InitializeDeinitialize) {
159
159
EXPECT_THAT_ERROR (Mem2.takeError (), Succeeded ());
160
160
161
161
char *WA = Mapper->prepare (Mem2->Start , HW.size () + 1 );
162
- std::strcpy (static_cast < char *>(WA) , HW.c_str ());
162
+ std::strcpy (WA , HW.c_str ());
163
163
164
164
MemoryMapper::AllocInfo Alloc3;
165
165
{
You can’t perform that action at this time.
0 commit comments