Forráskód Böngészése

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 éve
szülő
commit
0e5d73f728
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      unittests/IR/IRBuilderTest.cpp

+ 1 - 1
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.