[clang] 862c3d4 - Fix obvious typo
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 29 22:01:30 PST 2022
Author: Gabriel F. T. Gomes
Date: 2022-11-30T14:01:08+08:00
New Revision: 862c3d4fbe185c3d77c067e6e6ad1f07082a31e1
URL: https://github.com/llvm/llvm-project/commit/862c3d4fbe185c3d77c067e6e6ad1f07082a31e1
DIFF: https://github.com/llvm/llvm-project/commit/862c3d4fbe185c3d77c067e6e6ad1f07082a31e1.diff
LOG: Fix obvious typo
The -fcf-protection option takes an optional argument, which allows the
requesting of control-flow protection on returns, or on indirect jumps
and calls, or both. One of the comments in the code applies to returns,
yet it mentions branches (for indirect calls and jumps). This patch
fixes this obvious typo.
Reviewed By: pengfei
Differential Revision: https://reviews.llvm.org/D117836
Added:
Modified:
clang/include/clang/Basic/TargetInfo.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index 15eb2fcbd7d31..0ebe67abe3a69 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/include/clang/Basic/TargetInfo.h
@@ -1584,7 +1584,7 @@ class TargetInfo : public virtual TransferrableTargetInfo,
virtual bool
checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const;
- /// Check if the target supports CFProtection branch.
+ /// Check if the target supports CFProtection return.
virtual bool
checkCFProtectionReturnSupported(DiagnosticsEngine &Diags) const;
More information about the cfe-commits
mailing list