[llvm] [llvm][ARM][AArch64] Don't use module attr as function attr. (PR #83154)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 11:19:39 PST 2024
================
@@ -11584,10 +11584,6 @@ void SelectionDAGBuilder::lowerWorkItem(SwitchWorkListItem W, Value *Cond,
HasBranchTargetEnforcement =
CurFunc.getFnAttribute("branch-target-enforcement")
.getValueAsBool();
- } else {
- HasBranchTargetEnforcement =
- CurMF->getMMI().getModule()->getModuleFlag(
- "branch-target-enforcement");
}
----------------
nickdesaulniers wrote:
can remove `{}` for single statement `if`s.
https://github.com/llvm/llvm-project/pull/83154
More information about the llvm-commits
mailing list