[PATCH] Fix assert with copy from global through addrspacecast
Matt Arsenault
Matthew.Arsenault at amd.com
Fri Nov 22 12:13:21 PST 2013
================
Comment at: lib/IR/Constants.cpp:1510
@@ +1509,3 @@
+ return getBitCast(S, Ty);
+}
+
----------------
Michele Scandale wrote:
> Maybe this function can be fused within getPointerCast in order to support there the case of pointers with different address spaces.
I tried that originally, but the results weren't satisfying. The asserts are different since getBitCastOrAddrSpaceCast only accepts pointer<->pointer casts, while getPointerCast accepts integer destinations.
http://llvm-reviews.chandlerc.com/D2205
More information about the llvm-commits
mailing list