[PATCH] D109053: [BitcodeReader] Delay select until all constants resolved

guopeilin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 5 03:58:00 PDT 2021


guopeilin added inline comments.


================
Comment at: llvm/lib/Bitcode/Reader/BitcodeReader.cpp:2734
+                                  Record[2], NextCstNo});
+      ++NextCstNo;
+      continue;
----------------
efriedma wrote:
> Maybe it would simplify the algorithm if you `ValueList.getConstantFwdRef(NextCstNo, CurTy);` here?  That way, indexing into ValueList later would never fail.
Ok,thanks for reviewing. A new patch updated.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109053/new/

https://reviews.llvm.org/D109053



More information about the llvm-commits mailing list