summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Transforms/Utils/Cloning.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2014-03-12 16:14:53 +0000
committerEli Bendersky <eliben@google.com>2014-03-12 16:14:53 +0000
commit09a95e0b1290e44d2eee4a759ad12284a0e02713 (patch)
tree2fd06323455093ebb193d54ece0954ad44d5bbe5 /llvm/unittests/Transforms/Utils/Cloning.cpp
parent6693c673a197a92705184293a027c64c046d50d1 (diff)
downloadbcm5719-llvm-09a95e0b1290e44d2eee4a759ad12284a0e02713.tar.gz
bcm5719-llvm-09a95e0b1290e44d2eee4a759ad12284a0e02713.zip
Add parens around && clauses in a || to appease the compiler.
Otherwise gcc 4.8.2 generates a warning. llvm-svn: 203671
Diffstat (limited to 'llvm/unittests/Transforms/Utils/Cloning.cpp')
-rw-r--r--llvm/unittests/Transforms/Utils/Cloning.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Transforms/Utils/Cloning.cpp b/llvm/unittests/Transforms/Utils/Cloning.cpp
index 0ff80d6f8a8..db1edd9c6d4 100644
--- a/llvm/unittests/Transforms/Utils/Cloning.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud