projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b345ee
)
Use empty() instead of size().
author
Dan Gohman
<gohman@apple.com>
Mon, 7 Jul 2008 17:52:43 +0000
(17:52 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 7 Jul 2008 17:52:43 +0000
(17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53178
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/JIT/TargetSelect.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/JIT/TargetSelect.cpp
b/lib/ExecutionEngine/JIT/TargetSelect.cpp
index 1c204df9f28f57f38fe65830b6d4bf7f5478da96..0654f340b5f492830a5e293df99f75dd7bdaab00 100644
(file)
--- a/
lib/ExecutionEngine/JIT/TargetSelect.cpp
+++ b/
lib/ExecutionEngine/JIT/TargetSelect.cpp
@@
-59,7
+59,7
@@
ExecutionEngine *JIT::createJIT(ModuleProvider *MP, std::string *ErrorStr,
// Package up features to be passed to target/subtarget
std::string FeaturesStr;
- if (
MCPU.size() || MAttrs.size
()) {
+ if (
!MCPU.empty() || !MAttrs.empty
()) {
SubtargetFeatures Features;
Features.setCPU(MCPU);
for (unsigned i = 0; i != MAttrs.size(); ++i)