[llvm] [InferAlignment] Misc. refactoring (NFC) (PR #112699)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 05:36:18 PDT 2024


================
@@ -22,31 +23,47 @@
 
 using namespace llvm;
 
+DenseMap<Value *, Value *> ValueToBasePtr;
----------------
nikic wrote:

You can't use globals this way in LLVM, it's not thread safe and will mix data across functions.

https://github.com/llvm/llvm-project/pull/112699


More information about the llvm-commits mailing list