[llvm] [llvm][IR] Add per-global code model attribute (PR #72077)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 10:40:21 PST 2023


================
@@ -3917,6 +3935,13 @@ Error BitcodeReader::parseGlobalVarRecord(ArrayRef<uint64_t> Record) {
     NewGV->setSanitizerMetadata(Meta);
   }
 
+  if (Record.size() > 17 && Record[17]) {
----------------
aeubanks wrote:

sorry, I missed the `&& Record[17]`, this is fine

https://github.com/llvm/llvm-project/pull/72077


More information about the llvm-commits mailing list