[cfe-dev] Builtins.def compile error on Windows

John Thompson john.thompson.jtsoftware at gmail.com
Wed Jun 10 12:03:57 PDT 2009


The file include/llvm/Config/alloca.h has a "#define alloca _alloca" which
substitutes the "alloca" in Builtins.def, resulting in the Builtin::BIalloca
reference in CGBuiltin.cpp being undefined.

Changing "LIBBUILTIN(alloca, "v*z",         "f",     "stdlib.h")" to
"LIBBUILTIN(_alloca, "v*z",         "f",     "stdlib.h")",
and the one reference to "Builtin::BIalloca" to "Builtin::BI_alloca" in
CGBuiltin.cpp seems an easy fix, but I don't know if there are other issues
with this.

-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090610/8eadc31d/attachment.html>


More information about the cfe-dev mailing list