[all-commits] [llvm/llvm-project] 698cf0: Fix i1 array global crash in NVPTXAsmPrinter. (#92...

Johannes Reifferscheid via All-commits all-commits at lists.llvm.org
Fri May 17 03:06:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 698cf0176b3146993134354b02c9a67352d9d27e
      https://github.com/llvm/llvm-project/commit/698cf0176b3146993134354b02c9a67352d9d27e
  Author: Johannes Reifferscheid <jreiffers at google.com>
  Date:   2024-05-17 (Fri, 17 May 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    A llvm/test/CodeGen/NVPTX/i1-array-global.ll

  Log Message:
  -----------
  Fix i1 array global crash in NVPTXAsmPrinter. (#92506)

See the test file. At head, this crashes with

```
assertion failed at llvm/lib/Support/APInt.cpp:492 in
uint64_t llvm::APInt::extractBitsAsZExtValue(unsigned int, unsigned int) const:
  bitPosition < BitWidth && (numBits + bitPosition) <= BitWidth &&
  "Illegal bit extraction"
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list