aboutsummaryrefslogtreecommitdiffstats
path: root/prog/analysis.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-13 20:12:13 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-17 11:39:14 +0100
commit8ef00507063baf3fa681bb53113cb33adda5e4d7 (patch)
tree90f5be39889c5e064c92f16d9649627e84933820 /prog/analysis.go
parenteaeccee1d7f7a3f22e842309f21e3b118bd95254 (diff)
prog: don't serialize output data args
Fixes #188 We now will write just ""/1000 to denote a 1000-byte output buffer. Also we now don't store 1000-byte buffer in memory just to denote size. Old format is still parsed.
Diffstat (limited to 'prog/analysis.go')
-rw-r--r--prog/analysis.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/prog/analysis.go b/prog/analysis.go
index 80a127108..fcb00350b 100644
--- a/prog/analysis.go
+++ b/prog/analysis.go
@@ -58,12 +58,12 @@ func (s *state) analyze(c *Call) {
}
case *BufferType:
a := arg.(*DataArg)
- if typ.Dir() != DirOut && len(a.Data) != 0 {
+ if typ.Dir() != DirOut && len(a.Data()) != 0 {
switch typ.Kind {
case BufferString:
- s.strings[string(a.Data)] = true
+ s.strings[string(a.Data())] = true
case BufferFilename:
- s.files[string(a.Data)] = true
+ s.files[string(a.Data())] = true
}
}
}