fixed Google3 build failure

We had an #ifdef DEBUG (rather than the intended SK_DEBUG) which was
never actually compiled due to DEBUG not being defined. Apparently G3
defines DEBUG, and this code started failing.

Change-Id: I4c3695440ddae91c90605f742791eabc51b2fe6a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/322616
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
Ethan Nicholas 2020-10-05 15:02:05 -04:00 committed by Skia Commit-Bot
parent 0d31ed5068
commit 31acd98b2d

View File

@ -21,9 +21,9 @@ struct UnresolvedFunction : public Symbol {
UnresolvedFunction(std::vector<const FunctionDeclaration*> funcs)
: INHERITED(-1, kSymbolKind, funcs[0]->name())
, fFunctions(std::move(funcs)) {
#ifdef DEBUG
#ifdef SK_DEBUG
for (auto func : funcs) {
SkASSERT(func->fName == fName);
SkASSERT(func->name() == name());
}
#endif
}