Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

CVI2015 Clang crash: Instruction referencing instruction not embedded in a basic block!

$
0
0

Hi,

 

while editing I produced something like

#include <cvirte.h>

int main (int argc, char *argv[])
{
  if (InitCVIRTE (0, argv, 0) == 0)
    return -1;    /* out of memory */
  
  return 0;
  
  char c[2];
}

which CVI 2015's Clang doesn't like:

Build Status (clang-crash.prj - Debug)
 clang-crash.c - 2 warnings
  10, 8    warning: unused variable 'c' 
  10, 3    warning: will never be executed 
      1, 1   Instruction referencing instruction not embedded in a basic block!
      1, 1   %c = alloca [2 x i8], align 1
      1, 1   <badref> = bitcast [2 x i8]* %c to i8*, !dbg <badref>
      1, 1   Instruction referencing instruction not embedded in a basic block!
      1, 1   %9 = alloca { i8*, i32 }, align 8
      1, 1   <badref> = bitcast { i8*, i32 }* %9 to %"type 0x10471e8"*, !dbg <badref>
      1, 1   Instruction referencing instruction not embedded in a basic block!
      1, 1   %11 = load i8** %1
      1, 1   <badref> = call i8 @_InitPtrInfo(i8* %11, %"type 0x1047298"* @__cvi_TN8, %"type 0x10471e8"* <badref>, i8* <badref>), !dbg <badref>
      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.

This doesn't crash with CVI 2013.

 

Time for a Service Pack? I still miss my #pragma messages...

 

Thanks.


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>