summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2014-06-04 11:21:11 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2014-06-04 11:21:11 +0000
commite0e4fca46ad1d1e008484f81d1f9956776db2a6e (patch)
tree809585302df3c0e64394e6fb2b241d0ee0b880cc
parent7270890505fc357826a822fb64c240a5889048d4 (diff)
downloadllvm-e0e4fca46ad1d1e008484f81d1f9956776db2a6e.tar.gz
llvm-e0e4fca46ad1d1e008484f81d1f9956776db2a6e.tar.bz2
llvm-e0e4fca46ad1d1e008484f81d1f9956776db2a6e.tar.xz
Fix gcc -Wparentheses warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210178 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/IR/Globals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Globals.cpp b/lib/IR/Globals.cpp
index d5723c226a..160ddc9e81 100644
--- a/lib/IR/Globals.cpp
+++ b/lib/IR/Globals.cpp
@@ -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);
}