[nemiver] Fix Asm::empty
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Fix Asm::empty
- Date: Mon, 6 Sep 2010 19:53:21 +0000 (UTC)
commit 3d4bad9076aedb9ae385d86e1d5e5b68305a5ce3
Author: Dodji Seketeli <dodji redhat com>
Date: Mon Sep 6 11:44:40 2010 +0200
Fix Asm::empty
* src/common/nmv-asm-instr.h (Asm::empty): Don't forget the case
of when the asm is a pure asm instr.
src/common/nmv-asm-instr.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/common/nmv-asm-instr.h b/src/common/nmv-asm-instr.h
index 1cdd71f..673132c 100644
--- a/src/common/nmv-asm-instr.h
+++ b/src/common/nmv-asm-instr.h
@@ -151,7 +151,10 @@ class Asm {
bool empty () const
{
switch (which ()) {
- case TYPE_PURE:
+ case TYPE_PURE: {
+ const AsmInstr instr = boost::get<AsmInstr> (m_asm);
+ return instr.address ().empty ();
+ }
break;
case TYPE_MIXED: {
const MixedAsmInstr &mixed =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]