llvm-project
84b0f014 - [clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (#119719)

Commit
329 days ago
[clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (#119719) In Clang `#pragma function` is implemented by adding an implicit NoBuiltin Attribute to all function definitions after the pragma. This (wrongly) includes also defaulted or deleted functions, which results in the error, shown in #116256. As this attribute has no effect on the deleted or defaulted functions, this commit fixes the previously mentioned issue by simply not adding the attribute in such cases. Fixes #116256
Author
Parents
Loading