aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/Support/Error.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Support/Error.h')
-rw-r--r--llvm/include/llvm/Support/Error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Error.h b/llvm/include/llvm/Support/Error.h
index 1a801b6f2c7a..3c2c2c8b8ceb 100644
--- a/llvm/include/llvm/Support/Error.h
+++ b/llvm/include/llvm/Support/Error.h
@@ -1270,7 +1270,7 @@ public:
assert(Err && "Trying to log after takeError().");
OS << "'" << FileName << "': ";
if (Line)
- OS << "line " << Line.getValue() << ": ";
+ OS << "line " << Line.value() << ": ";
Err->log(OS);
}