[PATCH] D75542: [Sema] Prevent UB for uninitialized `IsSurrogate`

Brian Gesiak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 11:23:44 PDT 2020


modocache added a comment.

Friendly ping! `OverloadCandidate` has uninitialized members and so can cause UB if used incorrectly in another part of the compiler, so I feel this is a fairly straightforward patch: prevent UB by initializing all members. But I'd like some review to confirm. @rsmith? @aaron.ballman?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75542/new/

https://reviews.llvm.org/D75542





More information about the cfe-commits mailing list