[llvm-dev] LLVM Kaleidoscope : Compiling to Object Code - Segmentation Fault
preejackie via llvm-dev
llvm-dev at lists.llvm.org
Thu Jan 24 09:36:24 PST 2019
Hi all :)
I'm new to llvm!
I'm going through the kaleidoscope : compiling llvm IR to object code
tutorial, code in the listings breaks and causes a segmentation fault.
After some investigation through gdb, probably this constructor call,
causing the segfault.
|Program received signal SIGSEGV, Segmentation fault.||
||0x00000000004afee0 in
llvm::optional_detail::OptionalStorage<llvm::Reloc::Model,
true>::OptionalStorage(llvm::optional_detail::OptionalStorage<llvm::Reloc::Model,
true> const&) ()|
|Source code: |
TargetOptions opt;
autoRM =Optional<Reloc::Model>();
autoTheTargetMachine =
Target->createTargetMachine(TargetTriple, CPU, Features, opt, RM);
Whether this behavior is already notified and is there any workaround
available for it ? I would be great to know the root cause for this
behavior.
Of course, the kaleidoscope is friendly and good introduction to llvm
for beginners, thank you very much for developing :)
Thanks for your kind help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190124/e249da78/attachment.html>
More information about the llvm-dev
mailing list