summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2018-04-11 23:37:37 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2018-04-11 23:37:37 +0000
commit4fbb93003b50762eb92e062bae0fe40b9c87a368 (patch)
tree5f1f3f7a7f25232883396604ed3839be500c4dd2 /llvm/tools/llvm-objcopy/llvm-objcopy.cpp
parentcafa11289ac579361083c8ee6cb68763c5bd401e (diff)
downloadbcm5719-llvm-4fbb93003b50762eb92e062bae0fe40b9c87a368.tar.gz
bcm5719-llvm-4fbb93003b50762eb92e062bae0fe40b9c87a368.zip
[SSAUpdaterBulk] Fix linux bootstrap/sanitizer failures: explicitly specify order of evaluation.
The standard says that the order of evaluation of an expression s[x] = foo() is unspecified. In our case, we first create an empty entry in the map, then call foo(), then store its return value to the created entry. The problem is that foo uses the map as a cache, so if it finds that there is an entry in the map, it stops computation. This change explicitly sets the order, thus fixing this heisenbug. llvm-svn: 329864
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud