[llvm] r365472 - OpaquePtr: pass type to CreateLoad. NFC.
Tim Northover via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 05:36:36 PDT 2019
Author: tnorthover
Date: Tue Jul 9 05:36:36 2019
New Revision: 365472
URL: http://llvm.org/viewvc/llvm-project?rev=365472&view=rev
Log:
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.
Modified:
llvm/trunk/unittests/IR/IRBuilderTest.cpp
Modified: llvm/trunk/unittests/IR/IRBuilderTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/IRBuilderTest.cpp?rev=365472&r1=365471&r2=365472&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/IRBuilderTest.cpp (original)
+++ llvm/trunk/unittests/IR/IRBuilderTest.cpp Tue Jul 9 05:36:36 2019
@@ -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.
More information about the llvm-commits
mailing list