diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp index 919f4bbe7f8..bfbc0623f9c 100644 --- a/lib/CodeGen/Passes.cpp +++ b/lib/CodeGen/Passes.cpp @@ -243,10 +243,10 @@ TargetPassConfig::TargetPassConfig(TargetMachine *tm, PassManagerBase &pm) /// Insert InsertedPassID pass after TargetPassID. void TargetPassConfig::insertPass(AnalysisID TargetPassID, IdentifyingPassPtr InsertedPassID) { - assert((!InsertedPassID.isInstance() && - TargetPassID != InsertedPassID.getID()) || - (InsertedPassID.isInstance() && - TargetPassID != InsertedPassID.getInstance()->getPassID()) && + assert(((!InsertedPassID.isInstance() && + TargetPassID != InsertedPassID.getID()) || + (InsertedPassID.isInstance() && + TargetPassID != InsertedPassID.getInstance()->getPassID())) && "Insert a pass after itself!"); std::pair P(TargetPassID, InsertedPassID); Impl->InsertedPasses.push_back(P);