From a1fb8427692bc442ec635f457d6c46c5ba76c2cc Mon Sep 17 00:00:00 2001 From: Gnimuc Date: Sun, 23 Jun 2024 20:21:39 +0900 Subject: [PATCH] fix-up --- include/clang-c/CXCppInterOp.h | 2 +- lib/Interpreter/CXCppInterOp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang-c/CXCppInterOp.h b/include/clang-c/CXCppInterOp.h index a775cd41d..bf36c4eaf 100644 --- a/include/clang-c/CXCppInterOp.h +++ b/include/clang-c/CXCppInterOp.h @@ -59,7 +59,7 @@ TInterp_t clang_interpreter_takeInterpreterAsPtr(CXInterpreter I); /** * Undo N previous incremental inputs. */ -CXErrorCode clang_interpreter_Undo(CXInterpreter I, unsigned int N); +enum CXErrorCode clang_interpreter_Undo(CXInterpreter I, unsigned int N); /** * Dispose of the given interpreter context. diff --git a/lib/Interpreter/CXCppInterOp.cpp b/lib/Interpreter/CXCppInterOp.cpp index 4868f7581..9ab2fc1a8 100644 --- a/lib/Interpreter/CXCppInterOp.cpp +++ b/lib/Interpreter/CXCppInterOp.cpp @@ -70,7 +70,7 @@ TInterp_t clang_interpreter_takeInterpreterAsPtr(CXInterpreter I) { return static_cast(I)->Interp.release(); } -CXErrorCode clang_interpreter_Undo(CXInterpreter I, unsigned int N) { +enum CXErrorCode clang_interpreter_Undo(CXInterpreter I, unsigned int N) { return getInterpreter(I)->Undo(N) ? CXError_Failure : CXError_Success; }