diff --git a/compiler-rt/lib/xray/xray_interface_internal.h b/compiler-rt/lib/xray/xray_interface_internal.h --- a/compiler-rt/lib/xray/xray_interface_internal.h +++ b/compiler-rt/lib/xray/xray_interface_internal.h @@ -30,14 +30,10 @@ unsigned char Version; unsigned char Padding[13]; // Need 32 bytes uint64_t function() const { - if (Version < 2) - return Function; // The target address is relative to the location of the Function variable. return reinterpret_cast(&Function) + Function; } uint64_t address() const { - if (Version < 2) - return Address; // The target address is relative to the location of the Address variable. return reinterpret_cast(&Address) + Address; } @@ -49,14 +45,10 @@ unsigned char Version; unsigned char Padding[5]; // Need 16 bytes uint32_t function() const { - if (Version < 2) - return Function; // The target address is relative to the location of the Function variable. return reinterpret_cast(&Function) + Function; } uint32_t address() const { - if (Version < 2) - return Address; // The target address is relative to the location of the Address variable. return reinterpret_cast(&Address) + Address; }