Skip to content

Commit

Permalink
Minor gardening cleanups, NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
lattner committed Oct 30, 2021
1 parent 0c66cc4 commit 606b8d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/Conversion/ExportVerilog/ExportVerilogInternals.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef TRANSLATION_EXPORT_VERILOG_EXPORTVERILOGINTERNAL_H
#define TRANSLATION_EXPORT_VERILOG_EXPORTVERILOGINTERNAL_H
#ifndef CONVERSION_EXPORTVERILOG_EXPORTVERILOGINTERNAL_H
#define CONVERSION_EXPORTVERILOG_EXPORTVERILOGINTERNAL_H

#include "circt/Dialect/HW/HWOps.h"
#include "circt/Dialect/SV/SVOps.h"
Expand Down Expand Up @@ -162,4 +162,4 @@ GlobalNameTable legalizeGlobalNames(ModuleOp topLevel);

} // namespace circt

#endif // TRANSLATION_EXPORT_VERILOG_EXPORTVERILOGINTERNAL_H
#endif // CONVERSION_EXPORTVERILOG_EXPORTVERILOGINTERNAL_H
2 changes: 1 addition & 1 deletion lib/Dialect/FIRRTL/Transforms/InferWidths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ LogicalResult InferenceMapping::mapOperation(Operation *op) {

// A helper function that returns the indeces of the "data", "rdata",
// and "wdata" fields in the bundle corresponding to a memory port.
auto dataFieldIndices = [](MemOp::PortKind kind) {
auto dataFieldIndices = [](MemOp::PortKind kind) -> ArrayRef<unsigned> {
static const unsigned indices[] = {3, 5};
switch (kind) {
case MemOp::PortKind::Read:
Expand Down

0 comments on commit 606b8d4

Please sign in to comment.