summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_rtl.cc
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-08-21 13:47:25 +0000
committerDuncan Sands <baldrick@free.fr>2012-08-21 13:47:25 +0000
commit68256859ff14d122870de9dbe67a99c6b8fb795e (patch)
treebdb0bc1196bd2e66147bdec6faece9e48904e8c2 /compiler-rt/lib/asan/asan_rtl.cc
parentf39c1a3f72ee156321c0a26be287c4e8ce717a3f (diff)
downloadbcm5719-llvm-68256859ff14d122870de9dbe67a99c6b8fb795e.tar.gz
bcm5719-llvm-68256859ff14d122870de9dbe67a99c6b8fb795e.zip
PVS-Studio noticed that EmitVBR64 would perform undefined behaviour if the
number of bits was bigger than 32. I checked every use of this function that I could find and it looks like the maximum number of bits is 32, so I've added an assertion checking this property, and a type cast to (hopefully) stop PVS-Studio from warning about this in the future. llvm-svn: 162277
Diffstat (limited to 'compiler-rt/lib/asan/asan_rtl.cc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud