diff options
author | Gabor Greif <ggreif@gmail.com> | 2018-11-20 18:18:55 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-12-13 21:59:20 -0500 |
commit | d9d1b9b00321743611b271da3d427f9ffea00b96 (patch) | |
tree | 140dde73f5d06fd6600d662f92edf5b542befe98 /compiler/llvmGen | |
parent | 2634d840269c84c4f929af52f3b592ece64f3b86 (diff) | |
download | haskell-d9d1b9b00321743611b271da3d427f9ffea00b96.tar.gz |
llvmGen: Fix minor correctness issue
The alias is of type i8, so its global variable name
should have type i8*. Anyway we should never deal
with pointers to (i8*)!
Diffstat (limited to 'compiler/llvmGen')
-rw-r--r-- | compiler/llvmGen/LlvmCodeGen/Base.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/llvmGen/LlvmCodeGen/Base.hs b/compiler/llvmGen/LlvmCodeGen/Base.hs index 21b45e5a3b..e978d6feaf 100644 --- a/compiler/llvmGen/LlvmCodeGen/Base.hs +++ b/compiler/llvmGen/LlvmCodeGen/Base.hs @@ -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 |