From f2cee5cbdaf6fc017ae35cc8ecabc3b607a5f7e4 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 30 Sep 2011 20:32:22 +0000 Subject: [PATCH] Fix compiler warning about && in ||. This time the warning found an actual bug, we don't want to handle force_align_arg_pointer differently than __force_align_arg_pointer__. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140877 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/TargetAttributesSema.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Sema/TargetAttributesSema.cpp b/lib/Sema/TargetAttributesSema.cpp index 3a065cead5..aa0bc08ef7 100644 --- a/lib/Sema/TargetAttributesSema.cpp +++ b/lib/Sema/TargetAttributesSema.cpp @@ -249,8 +249,8 @@ namespace { } } if (Triple.getArch() != llvm::Triple::x86_64 && - Attr.getName()->getName() == "force_align_arg_pointer" || - Attr.getName()->getName() == "__force_align_arg_pointer__") { + (Attr.getName()->getName() == "force_align_arg_pointer" || + Attr.getName()->getName() == "__force_align_arg_pointer__")) { HandleX86ForceAlignArgPointerAttr(D, Attr, S); return true; } -- 2.40.0