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: unassignedclangb...@nondot.org
          Reporter: sven.vanhaastr...@arm.com
                CC: anastasia.stul...@arm.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to