summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/SimplifyAffineStructures.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2019-03-25 18:02:49 -0700
committerjpienaar <jpienaar@google.com>2019-03-29 17:40:44 -0700
commit46ade282c8d98558d0d1b8e79d2eee3ae00086f1 (patch)
tree4ad14d05ba9f7458b815b790fef6e239ac82ddc1 /mlir/lib/Transforms/SimplifyAffineStructures.cpp
parent5f3b914a6e26eb1ceefe6772579d110ac692e6b9 (diff)
downloadbcm5719-llvm-46ade282c8d98558d0d1b8e79d2eee3ae00086f1.tar.gz
bcm5719-llvm-46ade282c8d98558d0d1b8e79d2eee3ae00086f1.zip
Make FunctionPass::getFunction() return a reference to the function, instead of
a pointer. This makes it consistent with all the other methods in FunctionPass, as well as with ModulePass::getModule(). NFC. PiperOrigin-RevId: 240257910
Diffstat (limited to 'mlir/lib/Transforms/SimplifyAffineStructures.cpp')
-rw-r--r--mlir/lib/Transforms/SimplifyAffineStructures.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/SimplifyAffineStructures.cpp b/mlir/lib/Transforms/SimplifyAffineStructures.cpp
index 47d68461fa5..ab83ede303c 100644
--- a/mlir/lib/Transforms/SimplifyAffineStructures.cpp
+++ b/mlir/lib/Transforms/SimplifyAffineStructures.cpp
@@ -93,7 +93,7 @@ FunctionPassBase *mlir::createSimplifyAffineStructuresPass() {
void SimplifyAffineStructures::runOnFunction() {
simplifiedAttributes.clear();
- getFunction()->walk([&](Instruction *opInst) {
+ getFunction().walk([&](Instruction *opInst) {
for (auto attr : opInst->getAttrs()) {
if (auto mapAttr = attr.second.dyn_cast<AffineMapAttr>())
simplifyAndUpdateAttribute(opInst, attr.first, mapAttr);
OpenPOWER on IntegriCloud