diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-14 18:46:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-14 18:46:52 +0000 |
commit | 5b5cc5f2a1aa9741fe81052a6a2d5dcf1d5bd533 (patch) | |
tree | 9c90a17f09cb6568d5f572b4504767622157edfb /lib | |
parent | a0fcc3ee3fb48553bcf12f471bdf24888a93a123 (diff) |
inverted logic, caught by coverity
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index f21bd8485a..abbb8a865c 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -582,7 +582,7 @@ static void WriteAsOperandInternal(std::ostream &Out, const Value *V, Slot = Machine->getSlot(V); } else { Machine = createSlotMachine(V); - if (Machine == 0) + if (Machine) Slot = Machine->getSlot(V); else Slot = -1; |