[PATCH] D137164: [LLParser] Handle mixed blockaddress forward references with names and IDs

Michiel Derhaeg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 07:13:47 PDT 2022


MichielDerhaeg created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
MichielDerhaeg requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

ValIDs of the LocalID and LocalName kind were mixed in the same std::map.
std::less is not defined in that case. Operations on the std::map were
undefined and the incorrect basic block is parsed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137164

Files:
  llvm/include/llvm/AsmParser/LLParser.h
  llvm/lib/AsmParser/LLParser.cpp
  llvm/test/Bitcode/blockaddress-forwardref.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137164.472293.patch
Type: text/x-patch
Size: 6090 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221101/7a754ca5/attachment.bin>


More information about the llvm-commits mailing list