summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-02 21:46:44 +0000
committerDevang Patel <dpatel@apple.com>2008-09-02 21:46:44 +0000
commit805b37ca435a412de16b3ac640bf57c919bea558 (patch)
tree20fc996f62bc769a67026864b7fe48ac91275fa2 /llvm/lib
parentceb3ca94b71bf77a0e79399288d7f28a1a8b6ef9 (diff)
downloadbcm5719-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.cpp4
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 << ")";
}
OpenPOWER on IntegriCloud