Fix gcc -Wparentheses warning.
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Wed, 4 Jun 2014 11:21:11 +0000 (11:21 +0000)
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Wed, 4 Jun 2014 11:21:11 +0000 (11:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210178 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Globals.cpp

index d5723c226a2d0a99ff3ff98a187e1c5d5e6c75bf..160ddc9e81a74972a2d695465722b65d59cb2866 100644 (file)
@@ -290,7 +290,7 @@ void GlobalAlias::eraseFromParent() {
 }
 
 void GlobalAlias::setAliasee(Constant *Aliasee) {
-  assert(!Aliasee || Aliasee->getType() == getType() &&
+  assert((!Aliasee || Aliasee->getType() == getType()) &&
          "Alias and aliasee types should match!");
   setOperand(0, Aliasee);
 }