From 0e5d73f72807f6ee16e5928b19c0a3b5631638a9 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Tue, 9 Jul 2019 12:36:36 +0000 Subject: [PATCH] OpaquePtr: pass type to CreateLoad. NFC. This is the one place in LLVM itself that used the deprecated API for CreateLoad, so I just added the type in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365472 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/IR/IRBuilderTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/IR/IRBuilderTest.cpp b/unittests/IR/IRBuilderTest.cpp index c43f00cb8da..667b9ef0319 100644 --- a/unittests/IR/IRBuilderTest.cpp +++ b/unittests/IR/IRBuilderTest.cpp @@ -128,7 +128,7 @@ TEST_F(IRBuilderTest, ConstrainedFP) { CallInst *Call; IntrinsicInst *II; - V = Builder.CreateLoad(GV); + V = Builder.CreateLoad(GV->getValueType(), GV); // See if we get constrained intrinsics instead of non-constrained // instructions. -- 2.40.0