[llvm-commits] [llvm] r98761 - /llvm/trunk/unittests/VMCore/InstructionsTest.cpp

Nick Lewycky nicholas at mxc.ca
Thu Mar 18 11:04:59 PDT 2010


Gabor Greif wrote:
> Author: ggreif
> Date: Wed Mar 17 14:27:31 2010
> New Revision: 98761
>
> URL: http://llvm.org/viewvc/llvm-project?rev=98761&view=rev
> Log:
> feedback from Nick
>
> Modified:
>      llvm/trunk/unittests/VMCore/InstructionsTest.cpp
>
> Modified: llvm/trunk/unittests/VMCore/InstructionsTest.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/VMCore/InstructionsTest.cpp?rev=98761&r1=98760&r2=98761&view=diff
> ==============================================================================
> --- llvm/trunk/unittests/VMCore/InstructionsTest.cpp (original)
> +++ llvm/trunk/unittests/VMCore/InstructionsTest.cpp Wed Mar 17 14:27:31 2010
> @@ -11,6 +11,7 @@
>   #include "llvm/BasicBlock.h"
>   #include "llvm/DerivedTypes.h"
>   #include "llvm/LLVMContext.h"
> +#include "llvm/ADT/STLExtras.h"
>   #include "gtest/gtest.h"
>
>   namespace llvm {
> @@ -60,7 +61,7 @@
>     EXPECT_NE(b0->op_begin(), b0->op_end());
>     EXPECT_EQ(b0->op_begin() + 1, b0->op_end());

Here too :)

>
> -  EXPECT_EQ(b0->op_begin() + 1, b0->op_end());
> +  EXPECT_EQ(next(b0->op_begin()), b0->op_end());
>
>     const IntegerType* Int1 = IntegerType::get(C, 1);
>     Constant* One = ConstantInt::get(Int1, 1, true);
>
>
> _______________________________________________
> 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