[llvm] [IR][unittests] Replace of PointerType::get(Type) with opaque version (NFC) (PR #123621)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 07:27:32 PST 2025


================
@@ -406,8 +406,8 @@ TEST(InstructionsTest, CastCAPI) {
   Type *FloatTy = Type::getFloatTy(C);
   Type *DoubleTy = Type::getDoubleTy(C);
 
-  Type *Int8PtrTy = PointerType::get(Int8Ty, 0);
-  Type *Int32PtrTy = PointerType::get(Int32Ty, 0);
+  Type *Int8PtrTy = PointerType::get(C, 0);
+  Type *Int32PtrTy = PointerType::get(C, 0);
----------------
nikic wrote:

We should combine these into one PtrTy and then drop any tests that became redundant as a result.

https://github.com/llvm/llvm-project/pull/123621


More information about the llvm-commits mailing list