[clang] [llvm] Add support for Windows Secure Hot-Patching (PR #138972)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 06:36:10 PDT 2025
================
@@ -2649,6 +2649,15 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
// CPU/feature overrides. addDefaultFunctionDefinitionAttributes
// handles these separately to set them based on the global defaults.
GetCPUAndFeaturesAttributes(CalleeInfo.getCalleeDecl(), FuncAttrs);
+
+ // Windows hotpatching support
+ if (!MSHotPatchFunctions.empty()) {
+ bool IsHotPatched = std::binary_search(MSHotPatchFunctions.begin(),
+ MSHotPatchFunctions.end(), Name);
+ if (IsHotPatched) {
----------------
sivadeilra wrote:
Thanks. I've done a full pass through the patch now, and I believe I've fixed all of the use of braces.
https://github.com/llvm/llvm-project/pull/138972
More information about the cfe-commits
mailing list