mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
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:
parent
acc897a5e1
commit
fdca221290
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user