Skip to content

Commit

Permalink
fix crash related to flags
Browse files Browse the repository at this point in the history
  • Loading branch information
NaC-L committed Mar 22, 2024
1 parent fad40cd commit d3edb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lifter/OperandUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ IntegerType* getIntSize(int size, LLVMContext& context) {
}


void Init_Flags2(LLVMContext& context, IRBuilder<>& builder) {
void Init_Flags(LLVMContext& context, IRBuilder<>& builder) {

auto zero = (ConstantInt*)llvm::ConstantInt::getSigned(llvm::Type::getInt1Ty(context), 0);

Expand Down Expand Up @@ -80,7 +80,7 @@ Value* getFlag(LLVMContext& context, IRBuilder<>& builder, Flag flag) {
// instead of 1 variable
// have multiple variables that correspond to the flags

void Init_Flags(LLVMContext& context, IRBuilder<>& builder) {
void Init_Flags2(LLVMContext& context, IRBuilder<>& builder) {


auto zero = (ConstantInt*)llvm::ConstantInt::getSigned(llvm::Type::getInt64Ty(context), 0);
Expand Down

0 comments on commit d3edb20

Please sign in to comment.