Skip to content

Commit

Permalink
Propogate fixes from dawn-opt to dawn-codegen (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahm authored Mar 23, 2020
1 parent 4ae6dc0 commit 2e95089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dawn/src/dawn/dawn-codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ std::shared_ptr<dawn::iir::StencilInstantiation> deserializeInput(const std::str
dawn::IIRSerializer::deserializeFromString(input, dawn::IIRSerializer::Format::Byte);
format = SerializationFormat::Byte;
} catch(...) {
// Do nothing
internalIR = nullptr;
}
}
if(!internalIR) {
try {
internalIR =
dawn::IIRSerializer::deserializeFromString(input, dawn::IIRSerializer::Format::Json);
SerializationFormat::Json;
format = SerializationFormat::Json;
} catch(...) {
// Exhausted possibilities, so throw
throw std::runtime_error("Cannot deserialize input");
Expand Down

0 comments on commit 2e95089

Please sign in to comment.