From: Benjamin Kramer Date: Fri, 30 Sep 2011 20:32:22 +0000 (+0000) Subject: Fix compiler warning about && in ||. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2cee5cbdaf6fc017ae35cc8ecabc3b607a5f7e4;p=clang 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 --- 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; }