diff options
author | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
commit | 70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6 (patch) | |
tree | f1c41dbbb10c04adfbf4b213ab2c1965dee32d82 /llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | |
parent | cf8827a282e6e133d7a153673b1c05c58817d604 (diff) | |
download | bcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.tar.gz bcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.zip |
Use empty() instead of comparing size() with zero.
llvm-svn: 46514
Diffstat (limited to 'llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp index 1f2a1b0fba5..f5252a02f1b 100644 --- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -740,7 +740,7 @@ public: // If the constant string's length is zero we can optimize this by just // doing a store of 0 at the first byte of the destination - if (SrcStr.size() == 0) { + if (SrcStr.empty()) { new StoreInst(ConstantInt::get(Type::Int8Ty, 0), Dst, CI); return ReplaceCallWith(CI, Dst); } |