[clang] d913aa6 - [clang][Interp][NFC] Make a local function static
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 26 02:54:05 PDT 2023
Author: Timm Bäder
Date: 2023-07-26T11:50:07+02:00
New Revision: d913aa6971c582724a2ba71689fe4908a951e935
URL: https://github.com/llvm/llvm-project/commit/d913aa6971c582724a2ba71689fe4908a951e935
DIFF: https://github.com/llvm/llvm-project/commit/d913aa6971c582724a2ba71689fe4908a951e935.diff
LOG: [clang][Interp][NFC] Make a local function static
Added:
Modified:
clang/lib/AST/Interp/InterpBuiltin.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/InterpBuiltin.cpp b/clang/lib/AST/Interp/InterpBuiltin.cpp
index dbefcbf961dd28..e161a0681dcfa4 100644
--- a/clang/lib/AST/Interp/InterpBuiltin.cpp
+++ b/clang/lib/AST/Interp/InterpBuiltin.cpp
@@ -13,7 +13,8 @@
namespace clang {
namespace interp {
-template <typename T> T getParam(const InterpFrame *Frame, unsigned Index) {
+template <typename T>
+static T getParam(const InterpFrame *Frame, unsigned Index) {
unsigned Offset = Frame->getFunction()->getParamOffset(Index);
return Frame->getParam<T>(Offset);
}
More information about the cfe-commits
mailing list