diff options
author | Ed Maste <emaste@FreeBSD.org> | 2014-11-25 21:00:58 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2014-11-25 21:00:58 +0000 |
commit | 0cac4ca3916ac24ab6139d03cbfd18db9e715bfe (patch) | |
tree | c94307da318be46e5aeea1a325c1e91749506e4f /source/Utility/SharingPtr.cpp | |
parent | 03b99097822ca3ac69252d9afae716a584ed56c4 (diff) |
Notes
Diffstat (limited to 'source/Utility/SharingPtr.cpp')
-rw-r--r-- | source/Utility/SharingPtr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/Utility/SharingPtr.cpp b/source/Utility/SharingPtr.cpp index be237cec61c4..4083975bba7c 100644 --- a/source/Utility/SharingPtr.cpp +++ b/source/Utility/SharingPtr.cpp @@ -18,6 +18,8 @@ #include <assert.h> #include "lldb/Host/Mutex.h" +#include "llvm/ADT/STLExtras.h" + #include <vector> class Backtrace @@ -51,7 +53,7 @@ void Backtrace::GetFrames () { void *frames[1024]; - const int count = ::backtrace (frames, sizeof(frames)/sizeof(void*)); + const int count = ::backtrace (frames, llvm::array_lengthof(frames)); if (count > 2) m_frames.assign (frames + 2, frames + (count - 2)); } |