summaryrefslogtreecommitdiff
path: root/include/flang/Basic/Token.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/flang/Basic/Token.h')
-rw-r--r--include/flang/Basic/Token.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/flang/Basic/Token.h b/include/flang/Basic/Token.h
index 8b474a3368..585a45211a 100644
--- a/include/flang/Basic/Token.h
+++ b/include/flang/Basic/Token.h
@@ -130,7 +130,7 @@ public:
}
void setLiteralData(const char *Ptr) {
assert(isLiteral() && "Cannot set literal data of non-literal");
- PtrData = (void*)Ptr;
+ PtrData = const_cast<char*>(Ptr);
}
/// setFlag - Set the specified flag.