Application Specific Information:
Assertion failed: (getType()->isIntOrIntVectorTy() && “Tried to create an integer operation on a non-integer type!”), function init, file /Volumes/RAID/GOCD/pipelines/LLVM/source/lib/IR/Instructions.cpp, line 2025.
There’s something specific in your project that the compiler isn’t expecting and causes it to fall on its face. The best way to get this fixed would be to file a bug report with a project that reproduces the issue.
It comes from the MacOSLib/CertTools/ReadReceipt function, this line:
res = ASN1_get_object( p, length, type, xclass, e - p )
The ASN1_get_object is declared this way:
declare function ASN1_get_object lib “/usr/lib/libcrypto.dylib” (ByRef pp as Ptr, ByRef plength as Int32, ByRef ptag as Int32, ByRef pclass as Int32, omax as Int32) as Int32
I can give more info but before that maybe I am using an outdated version of that library? However I looked the one available soon the net and this function is identical.
I suspect the problem is the trailing ‘e - p’, both are of type Ptr, I forced the result to be int32 with CType unsuccessfully. The IDE crash when building this…
Ok, I have reduced the code to the minimum, the 3 following lines always crash my macOS 2017r2.1 IDE when trying to run the app from the IDE as 64bits (no problem with 32bits):
Just create a new project, paste this in the default window Open event:
dim p, e as Ptr
dim s as Int32
s = e - p
Set the architecture to 64 bits and run. You get a crash. In the crash log it says:
Assertion failed: (getType()->isIntOrIntVectorTy() && “Tried to create an integer operation on a non-integer type!”), function init, file /Volumes/RAID/GOCD/pipelines/LLVM/source/lib/IR/Instructions.cpp, line 2025.
[quote=351858:@Stanley Roche Busk]Just create a new project, paste this in the default window Open event:
dim p, e as Ptr
dim s as Int32
s = e - p
Set the architecture to 64 bits and run. You get a crash. In the crash log it says:
Assertion failed: (getType()->isIntOrIntVectorTy() && “Tried to create an integer operation on a non-integer type!”), function init, file /Volumes/RAID/GOCD/pipelines/LLVM/source/lib/IR/Instructions.cpp, line 2025.[/quote]
Please file a bug report about that.