diff options
author | Fangrui Song <i@maskray.me> | 2023-11-27 08:29:13 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-11-27 08:29:13 -0800 |
commit | dd3184c30ff531b8aecea280e65233337dd02815 (patch) | |
tree | fccf65a403141397281c4bff925442bd30f6081e /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | |
parent | 3c23ed156f0151923b168bdff0c34ec73fb37f38 (diff) | |
download | llvm-dd3184c30ff531b8aecea280e65233337dd02815.zip llvm-dd3184c30ff531b8aecea280e65233337dd02815.tar.gz llvm-dd3184c30ff531b8aecea280e65233337dd02815.tar.bz2 |
[unittest,examples] Replace uses of IRBuilder::getInt8PtrTy with getPtrTy. NFC
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
-rw-r--r-- | llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp index 50759d7..2876aa4 100644 --- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp +++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp @@ -1899,7 +1899,7 @@ TEST_F(OpenMPIRBuilderTest, ApplySimdCustomAligned) { IRBuilder<> Builder(BB); const int AlignmentValue = 32; AllocaInst *Alloc1 = - Builder.CreateAlloca(Builder.getInt8PtrTy(), Builder.getInt64(1)); + Builder.CreateAlloca(Builder.getPtrTy(), Builder.getInt64(1)); LoadInst *Load1 = Builder.CreateLoad(Alloc1->getAllocatedType(), Alloc1); MapVector<Value *, Value *> AlignedVars; AlignedVars.insert({Load1, Builder.getInt64(AlignmentValue)}); |