aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/ParserInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-26 16:29:15 +0000
committerChris Lattner <sabre@nondot.org>2001-07-26 16:29:15 +0000
commitbcbf6baf10c34086594bc03f0002a8977cd66941 (patch)
treef065a1fdfe2d396f2fc4a6034e1ce826558b40fe /lib/AsmParser/ParserInternals.h
parent9b50c1578d2d09a4bb023e0e215c75b8ccd0f936 (diff)
Refactor some of the constant stuff so that we can return complex constant
values directly. This was causing test failures. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304 91177308-0d34-0410-b5e6-96231b3b80d8
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...
}