yonghong-song added a comment. You compiled with the assertion on, which triggered the issue. I should have thought about this. Sorry. For error,
clang-test: /usr/local/google/home/blaikie/dev/llvm/src/lib/ExecutionEngine/MCJIT/MCJIT.cpp:204: virtual void llvm::MCJIT::generateCodeForModule(llvm::Module *): Assertion `M->getDataLayout() == getDataLayout() && "DataLayout M ismatch"' failed. It is because the clang compiler flag is compiled with native arch. which is x86 and later on it is changed to generatee BPF code. Could you try to temporarily build without assertion on? I will try to modify the test (or you could do that too) to generate native code to see whether the bug is still there or not. Repository: rC Clang https://reviews.llvm.org/D53329 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits