This is an archive of the discontinued LLVM Phabricator instance.

Initialize PunnedPointer
AbandonedPublic

Authored by vitalybuka on May 12 2023, 2:38 PM.

Details

Summary

Before D124571 PointerIntPair default constructor initialized to 0.

https://reviews.llvm.org/P8307

Diff Detail

Event Timeline

vitalybuka created this revision.May 12 2023, 2:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 2:38 PM
vitalybuka requested review of this revision.May 12 2023, 2:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 2:38 PM
vitalybuka edited the summary of this revision. (Show Details)
vitalybuka edited the summary of this revision. (Show Details)May 12 2023, 5:11 PM
brenoguim added inline comments.May 13 2023, 8:16 AM
llvm/include/llvm/ADT/PointerIntPair.h
37

I wonder why this constructor didn't kick in.

vitalybuka added inline comments.May 13 2023, 10:37 AM
llvm/include/llvm/ADT/PointerIntPair.h
37

Oh, I was probably visually looking PunnedPointer() and somehow missed this one. Yes, it should.

So I guess the real issue is https://reviews.llvm.org/D150504