This patch fixes an issue with the SVE prefetch and qinc/qdec intrinsics
that take an enum argument, but where the builtin prototype encodes
these as int. Some code in SemaDecl found the mismatch and chose
to forget about the builtin altogether, which meant that any future
code using that builtin would fail. The code that forgets about the
builtin was actually obsolete after D77491 and should have been removed.
This patch now removes that code.
This patch also fixes another issue with the SVE prefetch intrinsic
when built with C++, where the builtin didn't accept the correct
pointer type, which should be const void *.
This whole block is unnecessary since D77491 and should've been removed, but seems I missed it. Reverting/forgetting builtins was problematic and the attribute-based approach solved those deficiencies.
Delete this whole block and also remove forgetBuiltin(). The builtin-related code in ActOnFunctionDeclarator() handles everything necessary. No tests break and the SVE ones will pass. :)