summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp')
-rw-r--r--mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp b/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
index cc13360e05b..3bacd0adaaa 100644
--- a/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
+++ b/mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
@@ -564,7 +564,7 @@ LogicalResult Importer::processFunction(llvm::Function *f) {
assert(instMap.count(llvmAndUnknown.first));
Value newValue = instMap[llvmAndUnknown.first];
Value oldValue = llvmAndUnknown.second->getResult(0);
- oldValue->replaceAllUsesWith(newValue);
+ oldValue.replaceAllUsesWith(newValue);
llvmAndUnknown.second->erase();
}
return success();
OpenPOWER on IntegriCloud