aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2025-07-27 13:23:31 -0700
committerMehdi Amini <joker.eph@gmail.com>2025-07-27 13:24:54 -0700
commit9e5f9ff82f2f060aac73a965ab37fdbb6b53cfe0 (patch)
tree38d7f60c07bd92ea8d34cffc889bbd5021853d16 /mlir/lib
parentf4c05be544a02d7271605e09700310a77f5e80e0 (diff)
downloadllvm-9e5f9ff82f2f060aac73a965ab37fdbb6b53cfe0.zip
llvm-9e5f9ff82f2f060aac73a965ab37fdbb6b53cfe0.tar.gz
llvm-9e5f9ff82f2f060aac73a965ab37fdbb6b53cfe0.tar.bz2
[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.
Diffstat (limited to 'mlir/lib')
-rw-r--r--mlir/lib/Transforms/Utils/Inliner.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/Utils/Inliner.cpp b/mlir/lib/Transforms/Utils/Inliner.cpp
index dc78065..26c965c 100644
--- a/mlir/lib/Transforms/Utils/Inliner.cpp
+++ b/mlir/lib/Transforms/Utils/Inliner.cpp
@@ -348,13 +348,11 @@ static void collectCallOps(iterator_range<Region::iterator> blocks,
// InlinerInterfaceImpl
//===----------------------------------------------------------------------===//
-#ifndef NDEBUG
static std::string getNodeName(CallOpInterface op) {
if (llvm::dyn_cast_if_present<SymbolRefAttr>(op.getCallableForCallee()))
return debugString(op);
return "_unnamed_callee_";
}
-#endif
/// Return true if the specified `inlineHistoryID` indicates an inline history
/// that already includes `node`.