diff options
Diffstat (limited to 'lldb/unittests/UnwindAssembly/InstEmulation/TestArm64InstEmulation.cpp')
| -rw-r--r-- | lldb/unittests/UnwindAssembly/InstEmulation/TestArm64InstEmulation.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/unittests/UnwindAssembly/InstEmulation/TestArm64InstEmulation.cpp b/lldb/unittests/UnwindAssembly/InstEmulation/TestArm64InstEmulation.cpp index ab28cb637d8..7831a6534fd 100644 --- a/lldb/unittests/UnwindAssembly/InstEmulation/TestArm64InstEmulation.cpp +++ b/lldb/unittests/UnwindAssembly/InstEmulation/TestArm64InstEmulation.cpp @@ -56,9 +56,9 @@ void TestArm64InstEmulation::TearDownTestCase() { TEST_F(TestArm64InstEmulation, TestSimpleDarwinFunction) { ArchSpec arch("arm64-apple-ios10"); - UnwindAssemblyInstEmulation *engine = + std::unique_ptr<UnwindAssemblyInstEmulation> engine( static_cast<UnwindAssemblyInstEmulation *>( - UnwindAssemblyInstEmulation::CreateInstance(arch)); + UnwindAssemblyInstEmulation::CreateInstance(arch))); ASSERT_NE(nullptr, engine); UnwindPlan::RowSP row_sp; @@ -152,9 +152,9 @@ TEST_F(TestArm64InstEmulation, TestSimpleDarwinFunction) { TEST_F(TestArm64InstEmulation, TestMediumDarwinFunction) { ArchSpec arch("arm64-apple-ios10"); - UnwindAssemblyInstEmulation *engine = + std::unique_ptr<UnwindAssemblyInstEmulation> engine( static_cast<UnwindAssemblyInstEmulation *>( - UnwindAssemblyInstEmulation::CreateInstance(arch)); + UnwindAssemblyInstEmulation::CreateInstance(arch))); ASSERT_NE(nullptr, engine); UnwindPlan::RowSP row_sp; @@ -314,9 +314,9 @@ TEST_F(TestArm64InstEmulation, TestMediumDarwinFunction) { TEST_F(TestArm64InstEmulation, TestFramelessThreeEpilogueFunction) { ArchSpec arch("arm64-apple-ios10"); - UnwindAssemblyInstEmulation *engine = + std::unique_ptr<UnwindAssemblyInstEmulation> engine( static_cast<UnwindAssemblyInstEmulation *>( - UnwindAssemblyInstEmulation::CreateInstance(arch)); + UnwindAssemblyInstEmulation::CreateInstance(arch))); ASSERT_NE(nullptr, engine); UnwindPlan::RowSP row_sp; @@ -409,9 +409,9 @@ TEST_F(TestArm64InstEmulation, TestFramelessThreeEpilogueFunction) { TEST_F(TestArm64InstEmulation, TestRegisterSavedTwice) { ArchSpec arch("arm64-apple-ios10"); - UnwindAssemblyInstEmulation *engine = + std::unique_ptr<UnwindAssemblyInstEmulation> engine( static_cast<UnwindAssemblyInstEmulation *>( - UnwindAssemblyInstEmulation::CreateInstance(arch)); + UnwindAssemblyInstEmulation::CreateInstance(arch))); ASSERT_NE(nullptr, engine); UnwindPlan::RowSP row_sp; @@ -511,9 +511,9 @@ TEST_F(TestArm64InstEmulation, TestRegisterSavedTwice) { TEST_F(TestArm64InstEmulation, TestRegisterDoubleSpills) { ArchSpec arch("arm64-apple-ios10"); - UnwindAssemblyInstEmulation *engine = + std::unique_ptr<UnwindAssemblyInstEmulation> engine( static_cast<UnwindAssemblyInstEmulation *>( - UnwindAssemblyInstEmulation::CreateInstance(arch)); + UnwindAssemblyInstEmulation::CreateInstance(arch))); ASSERT_NE(nullptr, engine); UnwindPlan::RowSP row_sp; |

