File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1172,11 +1172,7 @@ Error createStringError(std::error_code EC, char const *Msg);
1172
1172
class FileError final : public ErrorInfo<FileError> {
1173
1173
1174
1174
template <class Err >
1175
- friend Error createFileError (
1176
- std::string, Err,
1177
- typename std::enable_if<std::is_base_of<Error, Err>::value &&
1178
- !std::is_base_of<ErrorSuccess, Err>::value>::type
1179
- *);
1175
+ friend Error createFileError (std::string, Err);
1180
1176
1181
1177
public:
1182
1178
void log (raw_ostream &OS) const override {
@@ -1212,11 +1208,7 @@ class FileError final : public ErrorInfo<FileError> {
1212
1208
// / Concatenate a source file path and/or name with an Error. The resulting
1213
1209
// / Error is unchecked.
1214
1210
template <class Err >
1215
- inline Error createFileError (
1216
- std::string F, Err E,
1217
- typename std::enable_if<std::is_base_of<Error, Err>::value &&
1218
- !std::is_base_of<ErrorSuccess, Err>::value>::type
1219
- * = nullptr ) {
1211
+ inline Error createFileError (std::string F, Err E) {
1220
1212
return FileError::build (F, std::move (E));
1221
1213
}
1222
1214
You can’t perform that action at this time.
0 commit comments