[PATCH] Fix ubsan error in ValueMap

Alexey Samsonov vonosmas at gmail.com
Wed Nov 19 15:37:07 PST 2014


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.

http://reviews.llvm.org/D6155






More information about the llvm-commits mailing list