Skip to content

Commit 2167292

Browse files
committed
More clean ups
1 parent fb13cfd commit 2167292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler_gym/envs/llvm/service/Observation.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Status setObservation(LlvmObservationSpace space, const fs::path& workingDirecto
118118
json FuncEmbJson = FuncEmb;
119119
json FuncJson;
120120
std::string FuncName = func.first->getName();
121-
FuncJson[func.first->getName()] = FuncEmbJson;
121+
FuncJson[FuncName] = FuncEmbJson;
122122
Embeddings.push_back(FuncJson);
123123
}
124124
*reply.mutable_string_value() = Embeddings.dump();
@@ -137,7 +137,7 @@ Status setObservation(LlvmObservationSpace space, const fs::path& workingDirecto
137137
json FuncEmbJson = FuncEmb;
138138
json FuncJson;
139139
std::string FuncName = func.first->getName();
140-
FuncJson[func.first->getName()] = FuncEmbJson;
140+
FuncJson[FuncName] = FuncEmbJson;
141141
Embeddings.push_back(FuncJson);
142142
}
143143
*reply.mutable_string_value() = Embeddings.dump();

0 commit comments

Comments
 (0)