[compiler-rt] r283506 - [ubsan] 0 -> nullptr (NFC)
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 6 15:58:46 PDT 2016
Author: vedantk
Date: Thu Oct 6 17:58:45 2016
New Revision: 283506
URL: http://llvm.org/viewvc/llvm-project?rev=283506&view=rev
Log:
[ubsan] 0 -> nullptr (NFC)
Modified:
compiler-rt/trunk/lib/ubsan/ubsan_type_hash_itanium.cc
Modified: compiler-rt/trunk/lib/ubsan/ubsan_type_hash_itanium.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_type_hash_itanium.cc?rev=283506&r1=283505&r2=283506&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_type_hash_itanium.cc (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_type_hash_itanium.cc Thu Oct 6 17:58:45 2016
@@ -248,9 +248,9 @@ __ubsan::DynamicTypeInfo
__ubsan::getDynamicTypeInfoFromVtable(void *VtablePtr) {
VtablePrefix *Vtable = getVtablePrefix(VtablePtr);
if (!Vtable)
- return DynamicTypeInfo(0, 0, 0);
+ return DynamicTypeInfo(nullptr, 0, nullptr);
if (Vtable->Offset < -VptrMaxOffsetToTop || Vtable->Offset > VptrMaxOffsetToTop)
- return DynamicTypeInfo(0, Vtable->Offset, 0);
+ return DynamicTypeInfo(nullptr, Vtable->Offset, nullptr);
const abi::__class_type_info *ObjectType = findBaseAtOffset(
static_cast<const abi::__class_type_info*>(Vtable->TypeInfo),
-Vtable->Offset);
More information about the llvm-commits
mailing list