Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-10-16 15:01:32 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-16 15:01:32 +0300
commit978b0bbcedb3ae449b417dc0fd45a739b5042131 (patch)
tree2c5207a1a9b9e9aff07bba4f9de4f02c15ce370e /moses/TranslationOptionCollectionLattice.cpp
parent31338d2fa211046e595efc22177326e165204d36 (diff)
change InputFeature::Instance to return pointer, not ref. Strange segfault in OSX/clang
Diffstat (limited to 'moses/TranslationOptionCollectionLattice.cpp')
-rw-r--r--moses/TranslationOptionCollectionLattice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionLattice.cpp b/moses/TranslationOptionCollectionLattice.cpp
index fde40e538..8bb2337f2 100644
--- a/moses/TranslationOptionCollectionLattice.cpp
+++ b/moses/TranslationOptionCollectionLattice.cpp
@@ -28,8 +28,8 @@ TranslationOptionCollectionLattice
UTIL_THROW_IF2(StaticData::Instance().GetUseLegacyPT(),
"Not for models using the legqacy binary phrase table");
- const InputFeature &inputFeature = InputFeature::Instance();
- UTIL_THROW_IF2(&inputFeature == NULL, "Input feature must be specified");
+ const InputFeature *inputFeature = InputFeature::InstancePtr();
+ UTIL_THROW_IF2(inputFeature == NULL, "Input feature must be specified");
size_t maxPhraseLength = StaticData::Instance().GetMaxPhraseLength();
size_t size = input.GetSize();