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.

llvm-svn: 365472
This commit is contained in:
Tim Northover 2019-07-09 12:36:36 +00:00
parent e995ce5498
commit 13b204fee1
1 changed files with 1 additions and 1 deletions

View 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.