NFC: Add AbstractOperation as a friend of 'Op'.

This allows for accessing the hidden overload of 'Op::hasTrait'.

PiperOrigin-RevId: 257018255
This commit is contained in:
River Riddle 2019-07-08 11:17:40 -07:00 committed by jpienaar
parent f2fb3d1909
commit d3a85cc77d
1 changed files with 3 additions and 0 deletions

View File

@ -897,6 +897,9 @@ private:
return llvm::is_contained(llvm::makeArrayRef({ClassID::getID<Traits>()...}),
traitID);
}
/// Allow access to 'hasTrait'.
friend AbstractOperation;
};
// These functions are out-of-line implementations of the methods in BinaryOp,