Commit 9b974dfa authored by Uday Bondhugula's avatar Uday Bondhugula
Browse files

[MLIR] [NFC] Buffer placement pass - clang tidy warnings

Add missing const - addresses clang tidy warnings.

Differential Revision: https://reviews.llvm.org/D83794
parent a8694eb5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ private:
  /// the top of the file for all alloc nodes that can be handled by this
  /// analysis.
  void placeAllocs() const {
    for (auto &entry : allocs) {
    for (const AllocEntry &entry : allocs) {
      Value alloc = entry.allocValue;
      // Get the actual block to place the alloc and get liveness information
      // for the placement block.
@@ -572,7 +572,7 @@ private:
    // These deallocations will be linked to their associated allocation nodes
    // since they don't have any aliases that can (potentially) increase their
    // liveness.
    for (auto &entry : allocs) {
    for (const AllocEntry &entry : allocs) {
      Value alloc = entry.allocValue;
      auto aliasesSet = aliases.resolve(alloc);
      assert(aliasesSet.size() > 0 && "must contain at least one alias");