Hi, I am trying to build LLVM with memory sanitizer. I am using the option -DLLVM_USE_SANITIZER=Memory
, but it fails on unrelated files. I am assuming this is because all the code is not exactly handling memory properly. Is there a way to build LLVM with memory sanitizer?
Is it failing when running tablegen? I got some use-of-uninitialized error coming from it, but a trick I found to workaround it is to build with -DLLVM_OPTIMIZED_TABLEGEN=ON
so that it doesn’t have the sanitiser
Yes, it was failing with TableGen files. I will try this. Thanks!