[Mlir-commits] [mlir] 8f3f101 - Minor build fix (pointer must be dereferenced with `->`)

Mehdi Amini llvmlistbot at llvm.org
Fri Aug 14 09:55:39 PDT 2020


Author: Mehdi Amini
Date: 2020-08-14T16:55:27Z
New Revision: 8f3f101b9520ddbc9cced63cbd83b34da9fdbfa8

URL: https://github.com/llvm/llvm-project/commit/8f3f101b9520ddbc9cced63cbd83b34da9fdbfa8
DIFF: https://github.com/llvm/llvm-project/commit/8f3f101b9520ddbc9cced63cbd83b34da9fdbfa8.diff

LOG: Minor build fix (pointer must be dereferenced with `->`)

Added: 
    

Modified: 
    mlir/lib/CAPI/IR/IR.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/CAPI/IR/IR.cpp b/mlir/lib/CAPI/IR/IR.cpp
index 96e226634390..1cb2ce5a10b0 100644
--- a/mlir/lib/CAPI/IR/IR.cpp
+++ b/mlir/lib/CAPI/IR/IR.cpp
@@ -97,7 +97,7 @@ MlirContext mlirContextCreate() {
 void mlirContextDestroy(MlirContext context) { delete unwrap(context); }
 
 void mlirContextLoadAllDialects(MlirContext context) {
-  unwrap(context).loadAllGloballyRegisteredDialects();
+  unwrap(context)->loadAllGloballyRegisteredDialects();
 }
 
 /* ========================================================================== */


        


More information about the Mlir-commits mailing list