[PATCH] D70421: Initialize global vectors with invalid members to catch uninitialization errors

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 21:04:02 PST 2019


ruiu added a comment.

In D70421#1751289 <https://reviews.llvm.org/D70421#1751289>, @grimar wrote:

> Does it make sense to accumulate all global variables in the one place? Like place them to a separate file with `initGlobals` method?
>  I think one of their problems is that they spreaded everywhere and initialized from many places.


Yeah, that might be both practical and effective, let me try that to see how it will look like.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70421





More information about the llvm-commits mailing list