forked from OSchip/llvm-project
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:
parent
f2fb3d1909
commit
d3a85cc77d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue