Skip to content

Commit

Permalink
llvmGen: Fix minor correctness issue
Browse files Browse the repository at this point in the history
The alias is of type i8, so its global variable name
should have type i8*. Anyway we should never deal
with pointers to (i8*)!
  • Loading branch information
ggreif authored and bgamari committed Dec 14, 2018
1 parent 2634d84 commit d9d1b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/llvmGen/LlvmCodeGen/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ aliasify (LMGlobal var val) = do
defVar = LMGlobalVar defLbl ty Internal sect align const

defPtrVar = LMGlobalVar defLbl (LMPointer ty) link Nothing Nothing const
aliasVar = LMGlobalVar lbl (LMPointer i8Ptr) link Nothing Nothing Alias
aliasVar = LMGlobalVar lbl i8Ptr link Nothing Nothing Alias
aliasVal = LMBitc (LMStaticPointer defPtrVar) i8Ptr

-- we need to mark the $def symbols as used so LLVM doesn't forget which
Expand Down

0 comments on commit d9d1b9b

Please sign in to comment.