@@ -564,17 +564,17 @@ rhs
564564::llvm::Type * const retType = getRet ()->getType ();
565565(void )retType;
566566
567- if (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 ) != lhsType) {
567+ if (::llvm::PointerType::get (context, 0 ) != lhsType) {
568568 errs << " unexpected value of $lhs:\n " ;
569- errs << " expected: " << printable (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 )) << ' \n ' ;
569+ errs << " expected: " << printable (::llvm::PointerType::get (context, 0 )) << ' \n ' ;
570570 errs << " actual: " << printable (lhsType) << ' \n ' ;
571571
572572 return false ;
573573 }
574574
575- if (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 ) != rhsType) {
575+ if (::llvm::PointerType::get (context, 0 ) != rhsType) {
576576 errs << " unexpected value of $rhs:\n " ;
577- errs << " expected: " << printable (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 )) << ' \n ' ;
577+ errs << " expected: " << printable (::llvm::PointerType::get (context, 0 )) << ' \n ' ;
578578 errs << " actual: " << printable (rhsType) << ' \n ' ;
579579
580580 return false ;
@@ -2077,9 +2077,9 @@ initial
20772077::llvm::Type * const resultType = getResult ()->getType ();
20782078(void )resultType;
20792079
2080- if (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 ) != ptrType) {
2080+ if (::llvm::PointerType::get (context, 0 ) != ptrType) {
20812081 errs << " unexpected value of $ptr:\n " ;
2082- errs << " expected: " << printable (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 )) << ' \n ' ;
2082+ errs << " expected: " << printable (::llvm::PointerType::get (context, 0 )) << ' \n ' ;
20832083 errs << " actual: " << printable (ptrType) << ' \n ' ;
20842084
20852085 return false ;
@@ -2169,9 +2169,9 @@ initial
21692169::llvm::Type * const resultType = getResult ()->getType ();
21702170(void )resultType;
21712171
2172- if (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 ) != ptrType) {
2172+ if (::llvm::PointerType::get (context, 0 ) != ptrType) {
21732173 errs << " unexpected value of $ptr:\n " ;
2174- errs << " expected: " << printable (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 )) << ' \n ' ;
2174+ errs << " expected: " << printable (::llvm::PointerType::get (context, 0 )) << ' \n ' ;
21752175 errs << " actual: " << printable (ptrType) << ' \n ' ;
21762176
21772177 return false ;
@@ -2261,9 +2261,9 @@ initial
22612261::llvm::Type * const resultType = getResult ()->getType ();
22622262(void )resultType;
22632263
2264- if (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 ) != ptrType) {
2264+ if (::llvm::PointerType::get (context, 0 ) != ptrType) {
22652265 errs << " unexpected value of $ptr:\n " ;
2266- errs << " expected: " << printable (::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 )) << ' \n ' ;
2266+ errs << " expected: " << printable (::llvm::PointerType::get (context, 0 )) << ' \n ' ;
22672267 errs << " actual: " << printable (ptrType) << ' \n ' ;
22682268
22692269 return false ;
@@ -2303,7 +2303,7 @@ initial
23032303 const ::llvm::AttributeList attrs
23042304 = ExampleDialect::get (context).getAttributeList (6 );
23052305 auto fnType = ::llvm::FunctionType::get (::llvm::Type::getVoidTy (context), {
2306- ::llvm::PointerType::get (::llvm::Type::getInt8Ty( context) , 0),
2306+ ::llvm::PointerType::get (context, 0 ),
23072307}, false );
23082308
23092309 auto fn = module .getOrInsertFunction (s_name, fnType, attrs);
@@ -2343,10 +2343,10 @@ initial
23432343 return false ;
23442344 }
23452345
2346- if (getArgOperand (0 )->getType () != ::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 )) {
2346+ if (getArgOperand (0 )->getType () != ::llvm::PointerType::get (context, 0 )) {
23472347 errs << " argument 0 (val) has type: "
23482348 << *getArgOperand (0 )->getType () << ' \n ' ;
2349- errs << " expected: " << *::llvm::PointerType::get (:: llvm::Type::getInt8Ty ( context) , 0 ) << ' \n ' ;
2349+ errs << " expected: " << *::llvm::PointerType::get (context, 0 ) << ' \n ' ;
23502350 return false ;
23512351 }
23522352 ::llvm::StringRef const val = getVal ();
0 commit comments