summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LiveVariables.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
committerDuncan Sands <baldrick@free.fr>2011-08-12 14:54:45 +0000
commit1f6a329f79b3568d379142f921f59c4143ddaa14 (patch)
tree48a398f7238e67041a4f73e6f65440be845523cb /include/llvm/CodeGen/LiveVariables.h
parent3c757ef2ef8294ea34378804d7c4d71053588b8c (diff)
downloadllvm-1f6a329f79b3568d379142f921f59c4143ddaa14.tar.gz
llvm-1f6a329f79b3568d379142f921f59c4143ddaa14.tar.bz2
llvm-1f6a329f79b3568d379142f921f59c4143ddaa14.tar.xz
Silence a bunch (but not all) "variable written but not read" warnings
when building with assertions disabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveVariables.h')
-rw-r--r--include/llvm/CodeGen/LiveVariables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h
index f9b81b1ea7..7ba901fc28 100644
--- a/include/llvm/CodeGen/LiveVariables.h
+++ b/include/llvm/CodeGen/LiveVariables.h
@@ -231,6 +231,7 @@ public:
}
assert(Removed && "Register is not used by this instruction!");
+ (void)Removed;
return true;
}
@@ -265,6 +266,7 @@ public:
}
}
assert(Removed && "Register is not defined by this instruction!");
+ (void)Removed;
return true;
}