Skip to content

Commit d46d9e0

Browse files
committed
LLVMBuildUtils: Add const to optimizeRegisterType() parameter
1 parent f0470f8 commit d46d9e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/engine/internal/llvm/llvmbuildutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ std::vector<LLVMLoop> &LLVMBuildUtils::loops()
366366
return m_loops;
367367
}
368368

369-
Compiler::StaticType LLVMBuildUtils::optimizeRegisterType(LLVMRegister *reg)
369+
Compiler::StaticType LLVMBuildUtils::optimizeRegisterType(const LLVMRegister *reg)
370370
{
371371
Compiler::StaticType ret = reg->type();
372372

src/engine/internal/llvm/llvmbuildutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class LLVMBuildUtils
7373
std::vector<LLVMIfStatement> &ifStatements();
7474
std::vector<LLVMLoop> &loops();
7575

76-
static Compiler::StaticType optimizeRegisterType(LLVMRegister *reg);
76+
static Compiler::StaticType optimizeRegisterType(const LLVMRegister *reg);
7777
static Compiler::StaticType mapType(ValueType type);
7878

7979
llvm::Value *addAlloca(llvm::Type *type);

0 commit comments

Comments
 (0)