[Beignet] [PATCH 3/7] disable buggy old code doing global constant
Homer Hsing
homer.xing at intel.com
Wed Apr 24 23:21:25 PDT 2013
Signed-off-by: Homer Hsing <homer.xing at intel.com>
---
backend/src/llvm/llvm_passes.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/llvm/llvm_passes.cpp b/backend/src/llvm/llvm_passes.cpp
index b38ef58..2811420 100644
--- a/backend/src/llvm/llvm_passes.cpp
+++ b/backend/src/llvm/llvm_passes.cpp
@@ -230,7 +230,7 @@ namespace gbe
if(isa<GlobalVariable>(parentPointer)) //HACK: !!!!
{
-#if 1//FORMER_VERSION
+#if FORMER_VERSION
Function *constWrapper =
Function::Create(FunctionType::get(parentPointer->getType(),true),
GlobalValue::ExternalLinkage,
--
1.8.1.2
More information about the Beignet
mailing list