mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 23:32:00 +00:00
Update unittest for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77730 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b41fc9f05c
commit
feba7562ec
@ -75,7 +75,7 @@ TEST(JIT, GlobalInFunction) {
|
||||
GTy,
|
||||
false, // Not constant.
|
||||
GlobalValue::InternalLinkage,
|
||||
context.getNullValue(GTy),
|
||||
Constant::getNullValue(GTy),
|
||||
"myglobal");
|
||||
|
||||
// Make a function that points to a global.
|
||||
|
@ -312,11 +312,11 @@ TEST_F(ValueHandle, CallbackVH_DeletionCanRAUW) {
|
||||
RVH = BitcastV.get();
|
||||
std::auto_ptr<BinaryOperator> BitcastUser(
|
||||
BinaryOperator::CreateAdd(RVH,
|
||||
getGlobalContext().getNullValue(Type::Int32Ty)));
|
||||
Constant::getNullValue(Type::Int32Ty)));
|
||||
EXPECT_EQ(BitcastV.get(), BitcastUser->getOperand(0));
|
||||
BitcastV.reset(); // Would crash without the ValueHandler.
|
||||
EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty), RVH.AURWArgument);
|
||||
EXPECT_EQ(getGlobalContext().getNullValue(Type::Int32Ty),
|
||||
EXPECT_EQ(Constant::getNullValue(Type::Int32Ty), RVH.AURWArgument);
|
||||
EXPECT_EQ(Constant::getNullValue(Type::Int32Ty),
|
||||
BitcastUser->getOperand(0));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user