Skip to content

Commit c978bcf

Browse files
arkqSanggyu Lee
authored andcommitted
[exo] Fix exception throw for unknown dialect (Samsung#16483)
This commit fixes a typo causing the exception not being thrown. ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
1 parent bbb7aa4 commit c978bcf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

compiler/exo/src/Knob.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
#include <pepper/strcast.h>
2020

2121
#include <iostream>
22-
#include <string>
2322
#include <map>
23+
#include <stdexcept>
24+
#include <string>
2425

2526
// Basic Infrastructure to declare and access Knob values
2627
namespace
@@ -115,7 +116,7 @@ void set(Dialect d)
115116
#undef KNOB_BOOL
116117
break;
117118
default:
118-
std::runtime_error("UnKnown dialect");
119+
throw std::runtime_error("Unknown dialect");
119120
}
120121
}
121122

0 commit comments

Comments
 (0)