about summary refs log tree commit diff homepage
path: root/lib/Expr
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2018-01-15 10:35:19 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-10-26 13:31:07 +0100
commit6f5537fc9080c03bc1c9f7e8e0d6bb93c5b03e2d (patch)
tree53915051372e8c4a7725fedb75ae422fd6ecb168 /lib/Expr
parent54851ed24b9d8a8937d7bf7d02ee6020ef770204 (diff)
downloadklee-6f5537fc9080c03bc1c9f7e8e0d6bb93c5b03e2d.tar.gz
llvm5: avoid ++ on function->arg_begin()
Starting with llvm 5, arguments of a function are not an iterator, but
an array. So they cannot be incremented in-place. Add a local auto
variable and increment that.

Otherwise we see:
../tools/klee/main.cpp:661:23: error: expression is not assignable
  Value *oldArgv = &*(++mainFn->arg_begin());
                      ^ ~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Diffstat (limited to 'lib/Expr')
0 files changed, 0 insertions, 0 deletions