search for: optional_detail

Displaying 6 results from an estimated 6 matches for "optional_detail".

2019 Jan 24
2
LLVM Kaleidoscope : Compiling to Object Code - Segmentation Fault
...note that I'm using release build of llvm, actually I don't know whether that is the root cause or not. I also run through valgrind, it seems like a invalid read from stack. |||Error Summary: | |1 errors in context 1 of 1: ==4153== Invalid read of size 1 ==4153==    at 0x4AFEE0: llvm::optional_detail::OptionalStorage<llvm::Reloc::Model, true>::OptionalStorage(llvm::optional_detail::OptionalStorage<llvm::Reloc::Model, true> const&) (in /home/preejackie/kld/toy) ==4153==    by 0x4B098D: llvm::RegisterTargetMachine<llvm::X86TargetMachine>::Allocator(llvm::Target const&amp...
2019 Jan 24
2
LLVM Kaleidoscope : Compiling to Object Code - Segmentation Fault
...leidoscope : 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,...
2018 Jan 24
2
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...================ > ================== > --- llvm/trunk/include/llvm/ADT/Optional.h (original) > +++ llvm/trunk/include/llvm/ADT/Optional.h Thu Jan 18 03:26:24 2018 > @@ -27,139 +27,173 @@ > > namespace llvm { > > -template <typename T> class Optional { > +namespace optional_detail { > +/// Storage for any type. > +template <typename T, bool IsPodLike> struct OptionalStorage { > AlignedCharArrayUnion<T> storage; > bool hasVal = false; > > -public: > - using value_type = T; > - > - Optional(NoneType) {} > - explicit Optional()...
2018 Jan 24
0
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...======== >> --- llvm/trunk/include/llvm/ADT/Optional.h (original) >> +++ llvm/trunk/include/llvm/ADT/Optional.h Thu Jan 18 03:26:24 2018 >> @@ -27,139 +27,173 @@ >> >> namespace llvm { >> >> -template <typename T> class Optional { >> +namespace optional_detail { >> +/// Storage for any type. >> +template <typename T, bool IsPodLike> struct OptionalStorage { >> AlignedCharArrayUnion<T> storage; >> bool hasVal = false; >> >> -public: >> - using value_type = T; >> - >> - Optional(None...
2018 Jan 24
1
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...clude/llvm/ADT/Optional.h (original) > >> +++ llvm/trunk/include/llvm/ADT/Optional.h Thu Jan 18 03:26:24 2018 > >> @@ -27,139 +27,173 @@ > >> > >> namespace llvm { > >> > >> -template <typename T> class Optional { > >> +namespace optional_detail { > >> +/// Storage for any type. > >> +template <typename T, bool IsPodLike> struct OptionalStorage { > >> AlignedCharArrayUnion<T> storage; > >> bool hasVal = false; > >> > >> -public: > >> - using value_type = T; &...
2018 Oct 01
2
Ubuntu LLVM packages incompatible with clang built projects?
On 09/29/2018 01:09 AM, Hans Wennborg via llvm-dev wrote: > Trunk still has the different gcc and clang versions. > > What's worse, the 7.0.0 release has them too :-( I completely missed > this and we can't fix it for 7.0.1 since that would also be an ABI > break. > Is this something we could fix by adding a symbol alias to the linker script for libLLVM.so? -Tom >