[llvm] Add the 'initializes' attribute langref and support (PR #84803)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 12:57:44 PDT 2024
================
@@ -858,6 +859,14 @@ class BitcodeReader : public BitcodeReaderBase, public GVMaterializer {
}
}
+ Expected<ConstantRange>
+ readBitWidthAndConstantRange(ArrayRef<uint64_t> Record, unsigned &OpNum) {
+ if (Record.size() - OpNum < 3)
----------------
aeubanks wrote:
I'd check `1` instead of `3` and let `readConstantRange` deal with its own reading error
https://github.com/llvm/llvm-project/pull/84803
More information about the llvm-commits
mailing list