Properly initialize end address in BasicBlock
authorChristoph Egger <Christoph.Egger@fau.de>
Tue, 10 Mar 2015 11:36:48 +0000 (12:36 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Tue, 10 Mar 2015 11:36:48 +0000 (12:36 +0100)
having random data show up there when the block isn't finished yet is
suboptimal

src/core/BasicBlock.hxx

index bec0da3a7d77752c78b031a429ea52a2f36908ee..0df07b2a7283d3b270712d7be1477f996ea3cea9 100644 (file)
@@ -54,6 +54,7 @@ public:
 private:
        BasicBlock(uint64_t start_address, InformationManager* manager)
                : start_address(start_address)
+               , end_address(0)
                , manager(manager) {
                next_blocks[0] = 0;
                next_blocks[1] = 0;