From d931967e5c3bb34592c5e7652df7c85e2e9fe90e Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 2 Dec 2018 18:32:03 +0800 Subject: [PATCH] fix previous commits --- artiq/compiler/transforms/llvm_ir_generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index d67d582ad..fa619d48c 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -150,8 +150,9 @@ class LLVMIRGenerator: ll.Constant(lli64, 1) ]) - assert self.lldatalayout in "eE" - self.little_endian = self.lldatalayout[0] == "e" + data_layout = str(self.lldatalayout) + assert data_layout[0] in "eE" + self.little_endian = data_layout[0] == "e" def needs_sret(self, lltyp, may_be_large=True): if isinstance(lltyp, ll.VoidType):