[llvm] r210178 - Fix gcc -Wparentheses warning.
Patrik Hagglund
patrik.h.hagglund at ericsson.com
Wed Jun 4 04:21:11 PDT 2014
Author: patha
Date: Wed Jun 4 06:21:11 2014
New Revision: 210178
URL: http://llvm.org/viewvc/llvm-project?rev=210178&view=rev
Log:
Fix gcc -Wparentheses warning.
Modified:
llvm/trunk/lib/IR/Globals.cpp
Modified: llvm/trunk/lib/IR/Globals.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Globals.cpp?rev=210178&r1=210177&r2=210178&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Globals.cpp (original)
+++ llvm/trunk/lib/IR/Globals.cpp Wed Jun 4 06:21:11 2014
@@ -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);
}
More information about the llvm-commits
mailing list