aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/ParserInternals.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AsmParser/ParserInternals.h')
-rw-r--r--lib/AsmParser/ParserInternals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h
index ae44602614..1f6bafce15 100644
--- a/lib/AsmParser/ParserInternals.h
+++ b/lib/AsmParser/ParserInternals.h
@@ -86,7 +86,7 @@ struct ValID {
ValID D; D.Type = 5; D.ConstPoolFP = Val; return D;
}
- inline void destroy() {
+ inline void destroy() const {
if (Type == 1 || Type == 4) free(Name); // Free this strdup'd memory...
}