Skip to content

Commit 9e5f9ff

Browse files
committed
[MLIR] Fix release build: reference to NDEBUG guarded function (NFC)
With LDBG(), the code isn't guarded in release mode, even if the optimizer will remove it because there is a `if (false)` statement. We need the function declaration to be there at minima.
1 parent f4c05be commit 9e5f9ff

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/lib/Transforms/Utils/Inliner.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,11 @@ static void collectCallOps(iterator_range<Region::iterator> blocks,
348348
// InlinerInterfaceImpl
349349
//===----------------------------------------------------------------------===//
350350

351-
#ifndef NDEBUG
352351
static std::string getNodeName(CallOpInterface op) {
353352
if (llvm::dyn_cast_if_present<SymbolRefAttr>(op.getCallableForCallee()))
354353
return debugString(op);
355354
return "_unnamed_callee_";
356355
}
357-
#endif
358356

359357
/// Return true if the specified `inlineHistoryID` indicates an inline history
360358
/// that already includes `node`.

0 commit comments

Comments
 (0)