Fixes "llvm/IR/ValueMap.h:210:65: runtime error: upcast of misaligned address 0xfffffffffffffffc for type 'llvm::AllocaInst', which requires 8 byte alignment
0xfffffffffffffffc: note: pointer points here"
Details
Details
- Reviewers
rsmith
Diff Detail
Diff Detail
Event Timeline
Comment Actions
How about adding a private ValueMapCallbackVH constructor, that takes a single llvm::Value *. It would be only used to create "fake" ValueMapCallbackVH for empty/tombstone keys in DenseMapInfo<>.
Losing compile-time check that static_cast<> enforces would be unfortunate.