aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Semantics/check-deallocate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flang/lib/Semantics/check-deallocate.cpp')
-rw-r--r--flang/lib/Semantics/check-deallocate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/flang/lib/Semantics/check-deallocate.cpp b/flang/lib/Semantics/check-deallocate.cpp
index c45b585..c1ebc5f 100644
--- a/flang/lib/Semantics/check-deallocate.cpp
+++ b/flang/lib/Semantics/check-deallocate.cpp
@@ -114,7 +114,8 @@ void DeallocateChecker::Leave(const parser::DeallocateStmt &deallocateStmt) {
},
[&](const parser::MsgVariable &var) {
WarnOnDeferredLengthCharacterScalar(context_,
- GetExpr(context_, var), var.v.thing.thing.GetSource(),
+ GetExpr(context_, var),
+ parser::UnwrapRef<parser::Variable>(var).GetSource(),
"ERRMSG=");
if (gotMsg) {
context_.Say(