[llvm] [llvm][IR] Add per-global code model attribute (PR #72077)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 10:32:34 PST 2023
================
@@ -3917,6 +3935,13 @@ Error BitcodeReader::parseGlobalVarRecord(ArrayRef<uint64_t> Record) {
NewGV->setSanitizerMetadata(Meta);
}
+ if (Record.size() > 17 && Record[17]) {
----------------
aeubanks wrote:
this won't work if we add another GV record and we have a GV that doesn't specify an explicit code model. we need to distinguish between an invalid record value and 0
https://github.com/llvm/llvm-project/pull/72077
More information about the llvm-commits
mailing list