[PATCH] D53329: Generate DIFile with main program if source is not available
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 14 16:27:11 PST 2018
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
More information about the cfe-commits
mailing list