diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-02 21:46:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-02 21:46:44 +0000 |
commit | 805b37ca435a412de16b3ac640bf57c919bea558 (patch) | |
tree | 20fc996f62bc769a67026864b7fe48ac91275fa2 /llvm/lib | |
parent | ceb3ca94b71bf77a0e79399288d7f28a1a8b6ef9 (diff) | |
download | bcm5719-llvm-805b37ca435a412de16b3ac640bf57c919bea558.tar.gz bcm5719-llvm-805b37ca435a412de16b3ac640bf57c919bea558.zip |
Use bitwise AND.
llvm-svn: 55656
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 05c37a48656..724b34f460e 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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 << ")"; } |