Skip to content

Commit

Permalink
SWDEV-238474 [inferaddrspace] Quick fix for amd-mainline-open branch.
Browse files Browse the repository at this point in the history
- Some changes in LLVM are missing and trigger invalid cases. Ignore
  them in that private branch.

Change-Id: I4e65d16f9791ddec6eaf60bbc9e016b14d537a9f
  • Loading branch information
mhbliao committed Jul 16, 2020
1 parent 3c7cef4 commit ee4e4eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ void InferAddressSpaces::collectRewritableIntrinsicOperands(
void InferAddressSpaces::appendsFlatAddressExpressionToPostorderStack(
Value *V, std::vector<std::pair<Value *, bool>> &PostorderStack,
DenseSet<Value *> &Visited) const {
assert(V->getType()->isPointerTy());
// Skip non pointers.
if (!V->getType()->isPointerTy())
return;

// Generic addressing expressions may be hidden in nested constant
// expressions.
Expand Down

0 comments on commit ee4e4eb

Please sign in to comment.