X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FllvmGen%2FLlvm%2FAbsSyn.hs;fp=compiler%2FllvmGen%2FLlvm%2FAbsSyn.hs;h=08d27d75f85374968da69544ff1e40ac9d3e7f66;hb=e94570ba7c84444f034b8d552c05f8594532b329;hp=a58ea7701fb66c9a1ef9d2cc6e69a0bd23ef4532;hpb=25a6230431a4da86ee2fe1f6dacd0ea672207a24;p=ghc-hetmet.git diff --git a/compiler/llvmGen/Llvm/AbsSyn.hs b/compiler/llvmGen/Llvm/AbsSyn.hs index a58ea77..08d27d7 100644 --- a/compiler/llvmGen/Llvm/AbsSyn.hs +++ b/compiler/llvmGen/Llvm/AbsSyn.hs @@ -176,11 +176,9 @@ data LlvmExpression Navigate in an structure, selecting elements * inbound: Is the pointer inbounds? (computed pointer doesn't overflow) * ptr: Location of the structure - * indexes: A list of indexes to select the correct value. For example - the first element of the third element of the structure ptr - is selected with [3,1] (zero indexed) + * indexes: A list of indexes to select the correct value. -} - | GetElemPtr Bool LlvmVar [Int] + | GetElemPtr Bool LlvmVar [LlvmVar] {- | Cast the variable from to the to type. This is an abstraction of three