[pypy-commit] pypy llvm-translation-backend: Fix raw_load() operation with addr of type Signed.
Manuel Jacob
noreply at buildbot.pypy.org
Sun May 25 20:13:50 CEST 2014
Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r71727:7f3ae0113be8
Date: 2014-05-25 20:13 +0200
http://bitbucket.org/pypy/pypy/changeset/7f3ae0113be8/
Log: Fix raw_load() operation with addr of type Signed.
diff --git a/rpython/translator/llvm/genllvm.py b/rpython/translator/llvm/genllvm.py
--- a/rpython/translator/llvm/genllvm.py
+++ b/rpython/translator/llvm/genllvm.py
@@ -1326,7 +1326,7 @@
t1 = self._tmp(PtrType(LLVMChar))
t2 = self._tmp(PtrType(LLVMChar))
t3 = self._tmp(PtrType(ptr_to))
- self.w('{t1.V} = bitcast {addr.TV} to {t1.T}'.format(**locals()))
+ self._cast(t1, addr)
self.w('{t2.V} = getelementptr inbounds {t1.TV}, {offset.TV}'
.format(**locals()))
self.w('{t3.V} = bitcast {t2.TV} to {t3.T}'.format(**locals()))
More information about the pypy-commit
mailing list