[LLVMdev] Roundtrip clang -> llc -> clang fails (original) (raw)

Eli Friedman eli.friedman at gmail.com
Fri Jul 27 15:56:59 PDT 2012


On Fri, Jul 27, 2012 at 3:36 PM, Kai <kai at redstar.de> wrote:

Hi!

I am not sure if this is a bug or not. I have the following non-sense C module excalloc.c: #include <windows.h> void *AllocMem() { HANDLE heap = GetProcessHeap(); void *p = HeapAlloc(heap, HEAPGENERATEEXCEPTIONS | HEAPZEROMEMORY, 1610241014*1024); return p; } If I execute the following commands clang -S -emit-llvm -o excalloc.ll excalloc.c llc -filetype=asm excalloc.ll clang -c excalloc.s then I get the error messages excalloc.s:11:31: error: invalid variant '0' callq *_impGetProcessHeap at 0(%rip) ^ excalloc.s:16:27: error: invalid variant '20' callq *_impHeapAlloc at 20(%rip)

Do I miss something here?

Looks like a bug to me.

-Eli



More information about the llvm-dev mailing list