Skip to content

Commit 6d23ffc

Browse files
author
Daniel Kroening
committed
cpp_symbol_exprt now returns symbol_exprt
1 parent e401667 commit 6d23ffc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cpp/cpp_util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
#include <util/std_expr.h>
1212
#include <util/symbol.h>
1313

14-
exprt cpp_symbol_expr(const symbolt &symbol)
14+
symbol_exprt cpp_symbol_expr(const symbolt &symbol)
1515
{
1616
symbol_exprt tmp(symbol.name, symbol.type);
1717

1818
if(symbol.is_lvalue)
1919
tmp.set(ID_C_lvalue, true);
2020

21-
return std::move(tmp);
21+
return tmp;
2222
}

src/cpp/cpp_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <util/expr.h>
1414
#include <util/symbol.h>
1515

16-
exprt cpp_symbol_expr(const symbolt &symbol);
16+
symbol_exprt cpp_symbol_expr(const symbolt &symbol);
1717

1818
inline void already_typechecked(irept &irep)
1919
{

0 commit comments

Comments
 (0)