diff options
author | Eli Bendersky <eliben@google.com> | 2014-03-12 16:14:53 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2014-03-12 16:14:53 +0000 |
commit | 8a9f2fd7f538abe42fcc3dcc9e30f63c1423b014 (patch) | |
tree | 7e62bb3d7dc8206cff3195dfd1b9c715584593ea /unittests/Transforms | |
parent | 72b4cbf3ed873b9c759aebb04e2d09ed6d9b6b0f (diff) | |
download | llvm-8a9f2fd7f538abe42fcc3dcc9e30f63c1423b014.tar.gz llvm-8a9f2fd7f538abe42fcc3dcc9e30f63c1423b014.tar.bz2 llvm-8a9f2fd7f538abe42fcc3dcc9e30f63c1423b014.tar.xz |
Add parens around && clauses in a || to appease the compiler.
Otherwise gcc 4.8.2 generates a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Transforms')
-rw-r--r-- | unittests/Transforms/Utils/Cloning.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Transforms/Utils/Cloning.cpp b/unittests/Transforms/Utils/Cloning.cpp index 0ff80d6f8a..db1edd9c6d 100644 --- a/unittests/Transforms/Utils/Cloning.cpp +++ b/unittests/Transforms/Utils/Cloning.cpp @@ -283,8 +283,8 @@ TEST_F(CloneFunc, Subprogram) { DISubprogram Sub2(*Iter); EXPECT_TRUE(Sub2.Verify()); - EXPECT_TRUE(Sub1.getFunction() == OldFunc && Sub2.getFunction() == NewFunc - || Sub1.getFunction() == NewFunc && Sub2.getFunction() == OldFunc); + EXPECT_TRUE((Sub1.getFunction() == OldFunc && Sub2.getFunction() == NewFunc) + || (Sub1.getFunction() == NewFunc && Sub2.getFunction() == OldFunc)); } // Test that the new subprogram entry was not added to the CU which doesn't |