diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-11-08 00:55:31 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-11-08 00:55:31 +0000 |
commit | 3e4f2ad3741959c71e2acd3206fa13901a12c94d (patch) | |
tree | aa7994485fd1c716dc925161c33eaf0d870f15e4 /include/llvm/Bitcode/Serialize.h | |
parent | f5b9dc34cbe6c9aea9f213d99bfe7ca2164d1a36 (diff) | |
download | external_llvm-3e4f2ad3741959c71e2acd3206fa13901a12c94d.zip external_llvm-3e4f2ad3741959c71e2acd3206fa13901a12c94d.tar.gz external_llvm-3e4f2ad3741959c71e2acd3206fa13901a12c94d.tar.bz2 |
Revised BatchEmitOwnedPtrs to work better with constant pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode/Serialize.h')
-rw-r--r-- | include/llvm/Bitcode/Serialize.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/Serialize.h b/include/llvm/Bitcode/Serialize.h index 0a647d0..b11a8d7 100644 --- a/include/llvm/Bitcode/Serialize.h +++ b/include/llvm/Bitcode/Serialize.h @@ -86,7 +86,7 @@ public: } template <typename T> - void BatchEmitOwnedPtrs(unsigned NumPtrs, T** Ptrs) { + void BatchEmitOwnedPtrs(unsigned NumPtrs, T* const * Ptrs) { for (unsigned i = 0; i < NumPtrs; ++i) EmitPtr(Ptrs[i]); |