diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-20 21:15:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-20 21:15:30 +0000 |
commit | 2bb5c7f6bfcf015d7edb61000ecd0071b2a75abb (patch) | |
tree | ae4180b7a0701370d25815830cb5ba7b76630960 /runtime | |
parent | 7add8bdc08da804e400f7aaf39f5a7a97d177f48 (diff) | |
download | external_llvm-2bb5c7f6bfcf015d7edb61000ecd0071b2a75abb.zip external_llvm-2bb5c7f6bfcf015d7edb61000ecd0071b2a75abb.tar.gz external_llvm-2bb5c7f6bfcf015d7edb61000ecd0071b2a75abb.tar.bz2 |
* If hashing a pointer, cast it to a 64 bit number so gcc doesn't warn
* Don't put extra stuff after #endif
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/libtrace/tracelib.c | 3 | ||||
-rw-r--r-- | runtime/libtrace/tracelib.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/runtime/libtrace/tracelib.c b/runtime/libtrace/tracelib.c index 35c9ccc..aa4e603 100644 --- a/runtime/libtrace/tracelib.c +++ b/runtime/libtrace/tracelib.c @@ -20,7 +20,7 @@ typedef int64_t Generic; typedef uint64_t Index; -typedef ptrdiff_t Pointer; +typedef uint64_t Pointer; /* Index IntegerHashFunc(const Generic value, const Index size) */ #define IntegerHashFunc(value, size) \ @@ -262,7 +262,6 @@ HashPointerToSeqNum(char* ptr) void ReleasePointerSeqNum(char* ptr) { /* if a sequence number was assigned to this ptr, release it */ - SequenceNumber seqnum; if (SequenceNumberTable != NULL) Delete(SequenceNumberTable, ptr); } diff --git a/runtime/libtrace/tracelib.h b/runtime/libtrace/tracelib.h index 493e703..f700a00 100644 --- a/runtime/libtrace/tracelib.h +++ b/runtime/libtrace/tracelib.h @@ -37,4 +37,4 @@ extern void ReleasePointersPopSet(); /*===---------------------------------------------------------------------===*/ -#endif _TEST_LIBRARIES_LIBINSTR_TRACELIB_ +#endif |