diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/MachineOperand.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/MachineOperand.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/MachineOperand.cpp b/contrib/llvm-project/llvm/lib/CodeGen/MachineOperand.cpp index 4d080e1a4f82..680dbe54ffaf 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/MachineOperand.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/MachineOperand.cpp @@ -1071,7 +1071,9 @@ void MachineMemOperand::refineAlignment(const MachineMemOperand *MMO) {    // The Value and Offset may differ due to CSE. But the flags and size    // should be the same.    assert(MMO->getFlags() == getFlags() && "Flags mismatch!"); -  assert(MMO->getSize() == getSize() && "Size mismatch!"); +  assert((MMO->getSize() == ~UINT64_C(0) || getSize() == ~UINT64_C(0) || +          MMO->getSize() == getSize()) && +         "Size mismatch!");    if (MMO->getBaseAlign() >= getBaseAlign()) {      // Update the alignment value.  | 
