fix clang 15 build bot
MODIFY
.github/workflows/build.yml
.github/workflows/build.yml
@@ -32,7 +32,7 @@ jobs:
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-14 main"
fi
if [[ ${{ matrix.compiler }} == "clang++-15" ]]; then
- sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
+ sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main"
fi
sudo apt-get update
sudo apt-get install z3 re2c ninja-build g++-12

MODIFY
tv/tv.cpp
tv/tv.cpp
@@ -196,7 +196,7 @@ struct TVLegacyPass final : public llvm::ModulePass {
string name = F.getName().str();
if (name.empty())
name = "anon$" + std::to_string(++anon_count);
- auto [I, first] = fns.try_emplace(name);
+ auto [I, first] = fns.try_emplace(std::move(name));
if (onlyif_src_exists && first) {
// src does not exist; skip this fn
fns.erase(I);

fix clang 15 build bot