[llvm-bugs] [Bug 32782] New: examples/ExceptionDemo/ExceptionDemo.cpp fails compiling

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 24 23:29:48 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32782

            Bug ID: 32782
           Summary: examples/ExceptionDemo/ExceptionDemo.cpp fails
                    compiling
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dilyan.palauzov at aegee.org
                CC: llvm-bugs at lists.llvm.org

[100%] Built target Kaleidoscope-Ch6
[100%] Built target Kaleidoscope-Ch7
[100%] Built target Kaleidoscope-Ch8
[100%] Built target ModuleMaker
[100%] Building CXX object
examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp: In function
‘llvm::Function* createFunction(llvm::Module&, llvm::Type*, const ArgTypes&,
const ArgNames&, const string&, llvm::GlobalValue::LinkageTypes, bool, bool)’:
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:185:35:
error: cannot convert ‘llvm::Function::arg_iterator {aka
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Argument, true,
false, void>, false, false>}’ to ‘std::map<std::__cxx11::basic_string<char>,
llvm::Value*>::mapped_type {aka llvm::Value*}’ in assignment
     namedValues[theArgNames[i]] = argIndex;
                                   ^~~~~~~~
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp: In function
‘uintptr_t readSLEB128(const uint8_t**)’:
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:375:22:
warning: left shift of negative value [-Wshift-negative-value]
     result |= (~0 << shift);
                      ^~~~~
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp: In function
‘_Unwind_Reason_Code ourPersonality(int, _Unwind_Action,
_Unwind_Exception_Class, _Unwind_Exception*, _Unwind_Context*)’:
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:796:56:
error: invalid conversion from ‘void*’ to ‘const uint8_t* {aka const unsigned
char*}’ [-fpermissive]
   const uint8_t *lsda = _Unwind_GetLanguageSpecificData(context);
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/src/llvm/llvm-4.0.0.src/examples/ExceptionDemo/ExceptionDemo.cpp:801:18:
warning: cast from type ‘const uint8_t* {aka const unsigned char*}’ to type
‘void*’ casts away qualifiers [-Wcast-qual]
           (void*)lsda);
                  ^~~~
make[2]: ***
[examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/build.make:63:
examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/ExceptionDemo.cpp.o] Error
1
make[2]: Target 'examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/build' not
remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:74042:
examples/ExceptionDemo/CMakeFiles/ExceptionDemo.dir/all] Error 2
[100%] Built target ParallelJIT
make[1]: Target 'all' not remade because of errors.
make: *** [Makefile:152: all] Error 2
make: Target 'default_target' not remade because of errors.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170425/965648be/attachment.html>


More information about the llvm-bugs mailing list