mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use Bits.data() instead of &Bits[0].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a13b860f4d
commit
365c53e328
@ -135,19 +135,19 @@ void FoldingSetNodeID::AddString(StringRef String) {
|
||||
/// ComputeHash - Compute a strong hash value for this FoldingSetNodeID, used to
|
||||
/// lookup the node in the FoldingSetImpl.
|
||||
unsigned FoldingSetNodeID::ComputeHash() const {
|
||||
return FoldingSetNodeIDRef(&Bits[0], Bits.size()).ComputeHash();
|
||||
return FoldingSetNodeIDRef(Bits.data(), Bits.size()).ComputeHash();
|
||||
}
|
||||
|
||||
/// operator== - Used to compare two nodes to each other.
|
||||
///
|
||||
bool FoldingSetNodeID::operator==(const FoldingSetNodeID &RHS)const{
|
||||
return *this == FoldingSetNodeIDRef(&RHS.Bits[0], RHS.Bits.size());
|
||||
return *this == FoldingSetNodeIDRef(RHS.Bits.data(), RHS.Bits.size());
|
||||
}
|
||||
|
||||
/// operator== - Used to compare two nodes to each other.
|
||||
///
|
||||
bool FoldingSetNodeID::operator==(FoldingSetNodeIDRef RHS) const {
|
||||
return FoldingSetNodeIDRef(&Bits[0], Bits.size()) == RHS;
|
||||
return FoldingSetNodeIDRef(Bits.data(), Bits.size()) == RHS;
|
||||
}
|
||||
|
||||
/// Intern - Copy this node's data to a memory region allocated from the
|
||||
|
Loading…
Reference in New Issue
Block a user