GetStatement(): 0 is a valid source location line, so rather init to -1.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31684 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -520,7 +520,7 @@ ArchitectureX86::GetStatement(FunctionDebugInfo* function,
|
|||||||
|
|
||||||
// create a statement
|
// create a statement
|
||||||
ContiguousStatement* statement = new(std::nothrow) ContiguousStatement(
|
ContiguousStatement* statement = new(std::nothrow) ContiguousStatement(
|
||||||
SourceLocation(0), TargetAddressRange(info.Address(), info.Size()));
|
SourceLocation(-1), TargetAddressRange(info.Address(), info.Size()));
|
||||||
if (statement == NULL)
|
if (statement == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user