[PATCH] D100387: Simplify BitVector code

Wingrez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 4 19:57:49 PDT 2023


wingrez reopened this revision.
wingrez added a comment.
This revision is now accepted and ready to land.
Herald added subscribers: sunshaoce, StephenFan.
Herald added a project: All.

This code snippet was normal before this version, but after this version it produced an assertion failure.

  llvm/ADT/SmallVector.h:277: llvm::SmallVectorTemplateCommon::const_reference llvm::SmallVectorTemplateCommon<unsigned long>::operator[](llvm::SmallVectorTemplateCommon::size_type) const [T = unsigned long]: Assertion `idx < size()' failed.

  BitVector bv;
  auto k = bv.getData();
  std::cout << k.size() << std::endl;


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100387



More information about the llvm-commits mailing list