[StandardInstrumentations] Assign names to basic blocks without names
authorArthur Eubanks <aeubanks@google.com>
Tue, 26 Jul 2022 17:18:57 +0000 (10:18 -0700)
committerArthur Eubanks <aeubanks@google.com>
Tue, 2 Aug 2022 18:04:01 +0000 (11:04 -0700)
commit43aa4ac70b82c8e378f84b65b49b4613649da8e0
treedee0d9b5c91f71f16450a1ea7e1fa2b0725ccb07
parenteb5aeee02f70369c1e9b15cfafb3d100494dbb28
[StandardInstrumentations] Assign names to basic blocks without names

Fixes code in OrderedChangedData<T>::report which assumes that a string will only appear once in Before/After.

Reviewed By: jamieschmeiser

Differential Revision: https://reviews.llvm.org/D130587
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Other/ChangePrinters/print-changed-diff-empty-bb-name.ll [new file with mode: 0644]