Skip to content

Commit

Permalink
add assertion message
Browse files Browse the repository at this point in the history
Change-Id: I7a7a370ef8f065a90f98bf83044cdc3b8ca4ec4f
  • Loading branch information
realqhc committed May 24, 2022
1 parent 85780ea commit 091a1e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bridge/go-llvm-cabi-oracle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ void EightByteInfo::determineABITypesForX86_64_SysV()
//
void EightByteInfo::determineAPITypesForRISC_V()
{
// In the direct case, ebrs_.size() cannot be greater than 2 because parameters
// larger than 16 bytes are passed indirectly.
assert(ebrs_.size() <= 2);
for (auto &ebr : ebrs_) {
if (ebr.abiDirectType != nullptr)
Expand Down

0 comments on commit 091a1e2

Please sign in to comment.