]> granicus.if.org Git - llvm/commitdiff
OpaquePtr: pass type to CreateLoad. NFC.
authorTim Northover <tnorthover@apple.com>
Tue, 9 Jul 2019 12:36:36 +0000 (12:36 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 9 Jul 2019 12:36:36 +0000 (12:36 +0000)
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

index c43f00cb8daf083f50ab3f1aad92f9724aa476e0..667b9ef0319a7aa81f2faa4ec0b68da1e86ce196 100644 (file)
@@ -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.