Add braces around || in && to pacify GCC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-04-11 11:57:01 +00:00
parent acc897a5e1
commit fdca221290

View File

@ -243,10 +243,10 @@ TargetPassConfig::TargetPassConfig(TargetMachine *tm, PassManagerBase &pm)
/// Insert InsertedPassID pass after TargetPassID. /// Insert InsertedPassID pass after TargetPassID.
void TargetPassConfig::insertPass(AnalysisID TargetPassID, void TargetPassConfig::insertPass(AnalysisID TargetPassID,
IdentifyingPassPtr InsertedPassID) { IdentifyingPassPtr InsertedPassID) {
assert((!InsertedPassID.isInstance() && assert(((!InsertedPassID.isInstance() &&
TargetPassID != InsertedPassID.getID()) || TargetPassID != InsertedPassID.getID()) ||
(InsertedPassID.isInstance() && (InsertedPassID.isInstance() &&
TargetPassID != InsertedPassID.getInstance()->getPassID()) && TargetPassID != InsertedPassID.getInstance()->getPassID())) &&
"Insert a pass after itself!"); "Insert a pass after itself!");
std::pair<AnalysisID, IdentifyingPassPtr> P(TargetPassID, InsertedPassID); std::pair<AnalysisID, IdentifyingPassPtr> P(TargetPassID, InsertedPassID);
Impl->InsertedPasses.push_back(P); Impl->InsertedPasses.push_back(P);