summaryrefslogtreecommitdiff
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2013-06-10 12:09:30 +0000
committerDuncan Sands <baldrick@free.fr>2013-06-10 12:09:30 +0000
commit48d5e750a8189c55087333d2bbc5dd0e1e07ddfa (patch)
tree868730f2478a8f1523817776b40dfe3c4238910a /include/llvm/ADT
parent366d94e16cceff0375c05bda540a8cf44a281ddf (diff)
downloadllvm-48d5e750a8189c55087333d2bbc5dd0e1e07ddfa.tar.gz
llvm-48d5e750a8189c55087333d2bbc5dd0e1e07ddfa.tar.bz2
llvm-48d5e750a8189c55087333d2bbc5dd0e1e07ddfa.tar.xz
Avoid warnings about unused parameters that tend to come up a lot when
building outside projects with a different compiler than that used to build LLVM itself (eg switching between gcc and clang). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/FoldingSet.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h
index 91794dea69..1b2c94c35f 100644
--- a/include/llvm/ADT/FoldingSet.h
+++ b/include/llvm/ADT/FoldingSet.h
@@ -352,7 +352,8 @@ template<class T> class FoldingSetBucketIterator;
template<typename T>
inline bool
DefaultFoldingSetTrait<T>::Equals(T &X, const FoldingSetNodeID &ID,
- unsigned IDHash, FoldingSetNodeID &TempID) {
+ unsigned /*IDHash*/,
+ FoldingSetNodeID &TempID) {
FoldingSetTrait<T>::Profile(X, TempID);
return TempID == ID;
}
@@ -366,7 +367,7 @@ template<typename T, typename Ctx>
inline bool
DefaultContextualFoldingSetTrait<T, Ctx>::Equals(T &X,
const FoldingSetNodeID &ID,
- unsigned IDHash,
+ unsigned /*IDHash*/,
FoldingSetNodeID &TempID,
Ctx Context) {
ContextualFoldingSetTrait<T, Ctx>::Profile(X, TempID, Context);