summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/IRBuilderTest.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-07-09 12:36:36 +0000
committerTim Northover <tnorthover@apple.com>2019-07-09 12:36:36 +0000
commit13b204fee1ee8febc2e8028f63094e8fd45b93d9 (patch)
tree7ecc16f602af1358f4bef2b3693d5f3f29e119cd /llvm/unittests/IR/IRBuilderTest.cpp
parente995ce5498fe255b2a9f69dceb39044de4e8651f (diff)
downloadbcm5719-llvm-13b204fee1ee8febc2e8028f63094e8fd45b93d9.tar.gz
bcm5719-llvm-13b204fee1ee8febc2e8028f63094e8fd45b93d9.zip
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
Diffstat (limited to 'llvm/unittests/IR/IRBuilderTest.cpp')
-rw-r--r--llvm/unittests/IR/IRBuilderTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/IRBuilderTest.cpp b/llvm/unittests/IR/IRBuilderTest.cpp
index c43f00cb8da..667b9ef0319 100644
--- a/llvm/unittests/IR/IRBuilderTest.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud