diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppHelper.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppHelper.java index 4941170ac011e1..01e918ca1ff658 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppHelper.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppHelper.java @@ -291,11 +291,7 @@ public static String getFdoBuildStamp( FeatureConfiguration featureConfiguration) { FdoContext.BranchFdoProfile branchFdoProfile = fdoContext.getBranchFdoProfile(); if (branchFdoProfile != null) { - // If the profile has a .afdo extension and was supplied to the build via the xbinary_fdo - // flag, then this is a safdo profile. - if (branchFdoProfile.isAutoFdo() && cppConfiguration.getXFdoProfileLabel() != null) { - return featureConfiguration.isEnabled(CppRuleClasses.AUTOFDO) ? "SAFDO" : null; - } + if (branchFdoProfile.isAutoFdo()) { return featureConfiguration.isEnabled(CppRuleClasses.AUTOFDO) ? "AFDO" : null; }