aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FoldingSet.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-09-14 20:48:42 +0000
committerDan Gohman <gohman@apple.com>2007-09-14 20:48:42 +0000
commit14cf78cde5e0e64bf55443e657c1250d55e2021c (patch)
treef1dd29171b43e6977ba82ddbe646debe4f6dfb9c /llvm/lib/Support/FoldingSet.cpp
parentc519c386290691eb997fe4590df0ff2ecf25f8b1 (diff)
downloadllvm-14cf78cde5e0e64bf55443e657c1250d55e2021c.zip
llvm-14cf78cde5e0e64bf55443e657c1250d55e2021c.tar.gz
llvm-14cf78cde5e0e64bf55443e657c1250d55e2021c.tar.bz2
And an FoldingSetImpl::NodeID::AddInteger overload for int64_t, to avoid
ambiguity. llvm-svn: 41960
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
-rw-r--r--llvm/lib/Support/FoldingSet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/FoldingSet.cpp b/llvm/lib/Support/FoldingSet.cpp
index 6f7f5ea..0ccb3a6 100644
--- a/llvm/lib/Support/FoldingSet.cpp
+++ b/llvm/lib/Support/FoldingSet.cpp
@@ -40,6 +40,9 @@ void FoldingSetImpl::NodeID::AddInteger(signed I) {
void FoldingSetImpl::NodeID::AddInteger(unsigned I) {
Bits.push_back(I);
}
+void FoldingSetImpl::NodeID::AddInteger(int64_t I) {
+ AddInteger((uint64_t)I);
+}
void FoldingSetImpl::NodeID::AddInteger(uint64_t I) {
Bits.push_back(unsigned(I));