[llvm] [IR] Add per-function numbers to basic blocks (PR #101052)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 13:00:20 PDT 2024
================
@@ -487,6 +487,78 @@ TEST(FunctionTest, EraseBBs) {
EXPECT_EQ(F->size(), 0u);
}
+TEST(FunctionTest, BasicBlockNumbers) {
+ LLVMContext Context;
+ Type *VoidType(Type::getVoidTy(Context));
+ FunctionType *FuncType(FunctionType::get(VoidType, false));
----------------
nikic wrote:
```suggestion
Type *VoidType = Type::getVoidTy(Context);
FunctionType *FuncType = FunctionType::get(VoidType, false);
```
https://github.com/llvm/llvm-project/pull/101052
More information about the llvm-commits
mailing list