mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixed gencontext_begin_module using wrong reloc_model. (#1384)
Fixed gencontext_begin_module using wrong reloc_model.
This commit is contained in:
@@ -73,7 +73,7 @@ void gencontext_begin_module(GenContext *c)
|
||||
|
||||
static const char *pic_level = "PIC Level";
|
||||
static const char *pie_level = "PIE Level";
|
||||
switch (compiler.build.reloc_model)
|
||||
switch (compiler.platform.reloc_model)
|
||||
{
|
||||
case RELOC_BIG_PIE:
|
||||
llvm_set_module_flag(c, LLVMModuleFlagBehaviorOverride, pie_level, (unsigned)2 /* PIE */, type_uint);
|
||||
|
||||
Reference in New Issue
Block a user