Skip to content

Commit 833565b

Browse files
committed
LLVMConstValue: Return constant in castConstValue()
1 parent 9e7d3d0 commit 833565b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dev/engine/internal/llvmcodebuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ llvm::Value *LLVMCodeBuilder::castRawValue(std::shared_ptr<Register> reg, Compil
806806
}
807807
}
808808

809-
llvm::Value *LLVMCodeBuilder::castConstValue(const Value &value, Compiler::StaticType targetType)
809+
llvm::Constant *LLVMCodeBuilder::castConstValue(const Value &value, Compiler::StaticType targetType)
810810
{
811811
switch (targetType) {
812812
case Compiler::StaticType::Number:

src/dev/engine/internal/llvmcodebuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class LLVMCodeBuilder : public ICodeBuilder
131131
void freeHeap();
132132
llvm::Value *castValue(std::shared_ptr<Register> reg, Compiler::StaticType targetType);
133133
llvm::Value *castRawValue(std::shared_ptr<Register> reg, Compiler::StaticType targetType);
134-
llvm::Value *castConstValue(const Value &value, Compiler::StaticType targetType);
134+
llvm::Constant *castConstValue(const Value &value, Compiler::StaticType targetType);
135135
llvm::Type *getType(Compiler::StaticType type);
136136
llvm::Value *removeNaN(llvm::Value *num);
137137

0 commit comments

Comments
 (0)