Skip to content

Commit

Permalink
Support, IR: silence -Wunused-parameter
Browse files Browse the repository at this point in the history
If this is used outside of LLVM with -Werror, this would cause a failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251094 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
compnerd committed Oct 23, 2015
1 parent d001394 commit 2589d46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/llvm/IR/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -914,13 +914,13 @@ class MDNode : public Metadata {
N->recalculateHash();
}
template <class NodeTy>
static void dispatchRecalculateHash(NodeTy *N, std::false_type) {}
static void dispatchRecalculateHash(NodeTy *, std::false_type) {}
template <class NodeTy>
static void dispatchResetHash(NodeTy *N, std::true_type) {
N->setHash(0);
}
template <class NodeTy>
static void dispatchResetHash(NodeTy *N, std::false_type) {}
static void dispatchResetHash(NodeTy *, std::false_type) {}

public:
typedef const MDOperand *op_iterator;
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/IR/User.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class User : public Value {
/// This is used for subclasses which have a fixed number of operands.
void *operator new(size_t Size, unsigned Us, unsigned DescBytes);

User(Type *ty, unsigned vty, Use *OpList, unsigned NumOps)
User(Type *ty, unsigned vty, Use *, unsigned NumOps)
: Value(ty, vty) {
assert(NumOps < (1u << NumUserOperandsBits) && "Too many operands");
NumUserOperands = NumOps;
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Support/CommandLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ template <class DataType> class parser : public generic_parser_base {
//
class basic_parser_impl { // non-template implementation of basic_parser<t>
public:
basic_parser_impl(Option &O) {}
basic_parser_impl(Option &) {}


enum ValueExpected getValueExpectedFlagDefault() const {
Expand Down

0 comments on commit 2589d46

Please sign in to comment.