mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Revert 80959. It isn't sufficient to solve the full problem. And it
introduced regressions in the Ocaml bindings tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,7 +36,7 @@ public:
|
||||
return ConstantExpr::getAdd(LHS, RHS);
|
||||
}
|
||||
Constant *CreateNSWAdd(Constant *LHS, Constant *RHS) const {
|
||||
return ConstantExpr::getAdd(LHS, RHS);
|
||||
return ConstantExpr::getNSWAdd(LHS, RHS);
|
||||
}
|
||||
Constant *CreateFAdd(Constant *LHS, Constant *RHS) const {
|
||||
return ConstantExpr::getFAdd(LHS, RHS);
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
return ConstantExpr::getSDiv(LHS, RHS);
|
||||
}
|
||||
Constant *CreateExactSDiv(Constant *LHS, Constant *RHS) const {
|
||||
return ConstantExpr::getSDiv(LHS, RHS);
|
||||
return ConstantExpr::getExactSDiv(LHS, RHS);
|
||||
}
|
||||
Constant *CreateFDiv(Constant *LHS, Constant *RHS) const {
|
||||
return ConstantExpr::getFDiv(LHS, RHS);
|
||||
@@ -127,11 +127,11 @@ public:
|
||||
|
||||
Constant *CreateInBoundsGetElementPtr(Constant *C, Constant* const *IdxList,
|
||||
unsigned NumIdx) const {
|
||||
return ConstantExpr::getGetElementPtr(C, IdxList, NumIdx);
|
||||
return ConstantExpr::getInBoundsGetElementPtr(C, IdxList, NumIdx);
|
||||
}
|
||||
Constant *CreateInBoundsGetElementPtr(Constant *C, Value* const *IdxList,
|
||||
unsigned NumIdx) const {
|
||||
return ConstantExpr::getGetElementPtr(C, IdxList, NumIdx);
|
||||
return ConstantExpr::getInBoundsGetElementPtr(C, IdxList, NumIdx);
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user