From: Tim Northover Date: Tue, 9 Jul 2019 12:36:36 +0000 (+0000) Subject: OpaquePtr: pass type to CreateLoad. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e5d73f72807f6ee16e5928b19c0a3b5631638a9;p=llvm 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 --- 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.