summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-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