We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea8cae commit 0dfd2bfCopy full SHA for 0dfd2bf
llvm/lib/Transforms/IPO/LowerTypeTests.cpp
@@ -879,7 +879,7 @@ void LowerTypeTestsModule::buildBitSetsFromGlobalVariables(
879
// Multiply by 2 to account for padding elements.
880
Constant *CombinedGlobalIdxs[] = {ConstantInt::get(Int32Ty, 0),
881
ConstantInt::get(Int32Ty, I * 2)};
882
- Constant *CombinedGlobalElemPtr = ConstantExpr::getGetElementPtr(
+ Constant *CombinedGlobalElemPtr = ConstantExpr::getInBoundsGetElementPtr(
883
NewInit->getType(), CombinedGlobal, CombinedGlobalIdxs);
884
assert(GV->getType()->getAddressSpace() == 0);
885
GlobalAlias *GAlias =
0 commit comments