ports/graphics/openshadinglanguage/files/patch-liboslexec__llvm_gen.cpp
Tijl Coosemans b09d984b3e - Import patches from upstream to fix build on FreeBSD 10 (clang, libc++)
- Depend on llvm33 and clang33.
- New LIB_DEPENDS syntax.
- Staging.
- Replace some patches with Makefile magic.

PR:		ports/180190, ports/180650
Submitted by:	Shane Ambler <FreeBSD@ShaneWare.Biz> (maintainer)
2013-11-07 14:00:44 +00:00

11 lines
517 B
C++

--- ./liboslexec/llvm_gen.cpp.orig 2013-07-12 08:31:18.000000000 +0930
+++ ./liboslexec/llvm_gen.cpp 2013-11-03 18:07:25.652119256 +1030
@@ -3310,7 +3310,7 @@
Symbol& Results = *rop.opargsym (op, 2);
DASSERT (R.typespec().is_int() && Str.typespec().is_string() &&
Results.typespec().is_array() &&
- Results.typespec().simpletype() == TypeDesc::TypeString);
+ Results.typespec().is_string_based());
llvm::Value *args[5];
args[0] = rop.llvm_load_value (Str);