Browse Source

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
Tim Northover 6 years ago
parent
commit
0e5d73f728
1 changed files with 1 additions and 1 deletions
  1. 1 1
      unittests/IR/IRBuilderTest.cpp

+ 1 - 1
unittests/IR/IRBuilderTest.cpp

@@ -128,7 +128,7 @@ TEST_F(IRBuilderTest, ConstrainedFP) {
   CallInst *Call;
   CallInst *Call;
   IntrinsicInst *II;
   IntrinsicInst *II;
 
 
-  V = Builder.CreateLoad(GV);
+  V = Builder.CreateLoad(GV->getValueType(), GV);
 
 
   // See if we get constrained intrinsics instead of non-constrained
   // See if we get constrained intrinsics instead of non-constrained
   // instructions.
   // instructions.