Skip to content

Commit bbf1144

Browse files
committed
drop assertion
1 parent ef11bcc commit bbf1144

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,6 @@ void PPCMergeStringPool::replaceUsesWithGEP(GlobalVariable *GlobalToReplace,
322322
Users.push_back(CurrentUser);
323323

324324
for (User *CurrentUser : Users) {
325-
Instruction *UserInstruction = dyn_cast<Instruction>(CurrentUser);
326-
Constant *UserConstant = dyn_cast<Constant>(CurrentUser);
327-
328-
// At this point we expect that the user is either an instruction or a
329-
// constant.
330-
assert((UserConstant || UserInstruction) &&
331-
"Expected the user to be an instruction or a constant.");
332-
333325
// The user was not found so it must have been replaced earlier.
334326
if (!userHasOperand(CurrentUser, GlobalToReplace))
335327
continue;

0 commit comments

Comments
 (0)