Skip to content

Commit

Permalink
OpaquePtr: pass type to CreateLoad. NFC.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TNorthover committed Jul 9, 2019
1 parent e995ce5 commit 13b204f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/unittests/IR/IRBuilderTest.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit 13b204f

Please sign in to comment.