From: Devang Patel Date: Tue, 2 Sep 2008 21:46:44 +0000 (+0000) Subject: Use bitwise AND. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1b47e48a6412de57b20d8b3869796e3b7ce2dcaa;p=oota-llvm.git Use bitwise AND. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55656 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 05c37a48656..724b34f460e 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1398,9 +1398,9 @@ void AssemblyWriter::printFunction(const Function *F) { FunctionNotes FNotes = F->getNotes(); if (FNotes != FP_None) { Out << " notes("; - if (FNotes && FP_AlwaysInline) + if (FNotes & FP_AlwaysInline) Out << "inline=always"; - else if (FNotes && FP_NoInline) + else if (FNotes & FP_NoInline) Out << "inline=never"; Out << ")"; }