CVI 2015 crashes with following errors:
Build Status (crash.prj - Debug) emf.c - 19 warnings [...warnings cut...] 1, 1 Instruction does not dominate all uses! 1, 1 %13298 = call %3* @_PtrCastToScalar(%3* inttoptr (i32 3 to %3*), { i8*, i32 }* %827, i32 2), !dbg !2461 1, 1 %13745 = call %3* @_PtrCastToScalar(%3* %13298, { i8*, i32 }* %827, i32 2), !dbg !2533 1, 1 Instruction does not dominate all uses! 1, 1 %13745 = call %3* @_PtrCastToScalar(%3* %13298, { i8*, i32 }* %827, i32 2), !dbg !2533 1, 1 %14123 = call %3* @_PtrCastToScalar(%3* %13745, { i8*, i32 }* %827, i32 2), !dbg !2594 1, 1 Instruction does not dominate all uses! 1, 1 %14123 = call %3* @_PtrCastToScalar(%3* %13745, { i8*, i32 }* %827, i32 2), !dbg !2594 1, 1 %14719 = call %3* @_PtrCastToScalar(%3* %14123, { i8*, i32 }* %827, i32 2), !dbg !2685 1, 1 Instruction does not dominate all uses! 1, 1 %14719 = call %3* @_PtrCastToScalar(%3* %14123, { i8*, i32 }* %827, i32 2), !dbg !2685 1, 1 %15178 = call %3* @_PtrCastToScalar(%3* %14719, { i8*, i32 }* %827, i32 2), !dbg !2757 1, 1 Broken module found, compilation aborted! 1, 1 This application has requested the Runtime to terminate it in an unusual way. 1, 1 Please contact the application's support team for more information. Build failed.
Steps to reproduce:
- Download zint-2.6.1.src.tar.gz from https://sourceforge.net/projects/zint/files/zint/2.6.1/
- Copy emf.c, emf.h, common.h, zint.h from backend dir into an empty dir
- Create empty textfile malloc.h
- Create new CVI project
- Add emf.c and add "." to include paths
- Compile emf.c
Build succedes when using Release mode.