diff --git a/src/reader/spirv/parser_impl.cc b/src/reader/spirv/parser_impl.cc index d6ed08bbf7..cc9bd28758 100644 --- a/src/reader/spirv/parser_impl.cc +++ b/src/reader/spirv/parser_impl.cc @@ -431,10 +431,8 @@ bool ParserImpl::BuildInternalModule() { } const spv_context& context = tools_context_.CContext(); - const bool insert_extra_opline = false; ir_context_ = spvtools::BuildModule(context->target_env, context->consumer, - spv_binary_.data(), spv_binary_.size(), - insert_extra_opline); + spv_binary_.data(), spv_binary_.size()); if (!ir_context_) { return Fail() << "internal error: couldn't build the internal " "representation of the module"; diff --git a/src/reader/spirv/parser_impl_test.cc b/src/reader/spirv/parser_impl_test.cc index 29e5e3c34a..026cfe7f14 100644 --- a/src/reader/spirv/parser_impl_test.cc +++ b/src/reader/spirv/parser_impl_test.cc @@ -179,7 +179,7 @@ TEST_F(SpvParserTest, Impl_Source_WithOpLine_WithOpNoLine) { EXPECT_EQ(53u, s60.range.begin.column); // After OpNoLine, revert back to instruction counting. auto s1 = p->GetSourceForResultIdForTest(1); - EXPECT_EQ(13u, s1.range.begin.line); + EXPECT_EQ(14u, s1.range.begin.line); EXPECT_EQ(0u, s1.range.begin.column); }