template <class T> T errorOrDefault(ErrorOr<T> Val, T Default = T()) {
if (!Val) {
- error(Val);
+ error(Val.getError());
return Default;
}
FullSymbolName += (IsDefault ? "@@" : "@");
FullSymbolName += *Version;
} else
- error(Version);
+ error(Version.getError());
}
DictScope D(W, "Symbol");