aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2010-03-30 18:36:57 +0000
committerTanya Lattner <tonic@nondot.org>2010-03-30 18:36:57 +0000
commit78701d41a016f54e41543273af2e23ea6457d9dc (patch)
tree4043ec549ab86713a10ad8e55cc2ed4023a12e41
parentc524bff18b49bb059afadc9abe1b3495e8d3bc53 (diff)
Merge 99762 from mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_27@99908 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/System/Memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/System/Memory.h b/include/llvm/System/Memory.h
index 69251dd2bf..01bcab1f00 100644
--- a/include/llvm/System/Memory.h
+++ b/include/llvm/System/Memory.h
@@ -27,7 +27,7 @@ namespace sys {
/// @brief Memory block abstraction.
class MemoryBlock {
public:
- MemoryBlock() { }
+ MemoryBlock() : Address(0), Size(0) { }
MemoryBlock(void *addr, size_t size) : Address(addr), Size(size) { }
void *base() const { return Address; }
size_t size() const { return Size; }