projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7270890
)
Fix gcc -Wparentheses warning.
author
Patrik Hagglund
<patrik.h.hagglund@ericsson.com>
Wed, 4 Jun 2014 11:21:11 +0000
(11:21 +0000)
committer
Patrik 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
patch
|
blob
|
history
diff --git
a/lib/IR/Globals.cpp
b/lib/IR/Globals.cpp
index d5723c226a2d0a99ff3ff98a187e1c5d5e6c75bf..160ddc9e81a74972a2d695465722b65d59cb2866 100644
(file)
--- 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);
}