Fixup D123950 to address revert of D123345
authorDavid Tenty <daltenty@ibm.com>
Wed, 20 Apr 2022 23:59:07 +0000 (19:59 -0400)
committerDavid Tenty <daltenty@ibm.com>
Wed, 20 Apr 2022 23:59:07 +0000 (19:59 -0400)
Since D123345 got reverted Builtin::BIaddressof and Builtin::BI__addressof don't exist and cause build breaks.

clang/lib/CodeGen/CGExpr.cpp

index fbe1586001b192c3bc06b3e912b9b54e8043445b..b2947e3927165330c182200d70678963b5e955a5 100644 (file)
@@ -1175,8 +1175,6 @@ Address CodeGenFunction::EmitPointerWithAlignment(const Expr *E,
     switch (Call->getBuiltinCallee()) {
     default:
       break;
-    case Builtin::BIaddressof:
-    case Builtin::BI__addressof:
     case Builtin::BI__builtin_addressof: {
       LValue LV = EmitLValue(Call->getArg(0));
       if (BaseInfo) *BaseInfo = LV.getBaseInfo();