summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DIBuilder.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-13 03:02:28 +0000
committerDan Albert <danalbert@google.com>2015-02-13 03:02:28 +0000
commit0b15b140960a706b1e4b45873e2fa426868739a2 (patch)
treefb645246bb0151b80c30f36e410f972b6e0d7c45 /llvm/lib/IR/DIBuilder.cpp
parent63bef0d1773fa389975ff95dc7b7580468c43ce1 (diff)
downloadbcm5719-llvm-0b15b140960a706b1e4b45873e2fa426868739a2.tar.gz
bcm5719-llvm-0b15b140960a706b1e4b45873e2fa426868739a2.zip
Fix error checking in get_temp_file_name().
Checking errno without first checking that the call failed means that if some other call prior to mkstemp failed with EINVAL prior to this, the assert would fire even if mkstemp succeeded. If something failed with EEXIST, it would go in to an infinite loop. Change-Id: I3f140a3e15fe08664a38a8c9a950c4ed547eb481 llvm-svn: 229035
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud