[llvm-bugs] [Bug 43145] New: Invalid cast when calling member function

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 28 08:43:25 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43145

            Bug ID: 43145
           Summary: Invalid cast when calling member function
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Sven.VanHaastregt at arm.com
                CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org

The test case provided in
https://github.com/KhronosGroup/SPIRV-LLVM-Translator/issues/304 triggers an
"Invalid cast" assertion in clang:

$ bin/clang -cl-std=clc++ -c -emit-llvm --target=spir64-unknown-unknown
issue304.cl

llvm/lib/IR/Instructions.cpp:2737: static llvm::CastInst*
llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*,
const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(op, S, Ty) &&
"Invalid cast!"' failed.

-- 
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/20190828/c9dd7db9/attachment.html>


More information about the llvm-bugs mailing list