[llvm] r222083 - Dispose disassembler after use in unit test.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Nov 20 08:41:36 PST 2014


Thanks!

On 15 November 2014 05:53, Benjamin Kramer <benny.kra at googlemail.com> wrote:
> Author: d0k
> Date: Sat Nov 15 04:53:12 2014
> New Revision: 222083
>
> URL: http://llvm.org/viewvc/llvm-project?rev=222083&view=rev
> Log:
> Dispose disassembler after use in unit test.
>
> Modified:
>     llvm/trunk/unittests/MC/Disassembler.cpp
>
> Modified: llvm/trunk/unittests/MC/Disassembler.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/MC/Disassembler.cpp?rev=222083&r1=222082&r2=222083&view=diff
> ==============================================================================
> --- llvm/trunk/unittests/MC/Disassembler.cpp (original)
> +++ llvm/trunk/unittests/MC/Disassembler.cpp Sat Nov 15 04:53:12 2014
> @@ -59,4 +59,6 @@ TEST(Disassembler, Test1) {
>                                     OutStringSize);
>    EXPECT_EQ(InstSize, 2U);
>    EXPECT_EQ(StringRef(OutString), "\tjmp\t0x1");
> +
> +  LLVMDisasmDispose(DCR);
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list