aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DebugInfo.h
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2010-09-25 20:27:36 +0000
committerOscar Fuentes <ofv@wanadoo.es>2010-09-25 20:27:36 +0000
commit429c75b8654b0d1069f1897375f5801a4c5de017 (patch)
tree967cb1c1c4e7b82ddd8cb9fe3b59b4f0fe004aa4 /include/llvm/Analysis/DebugInfo.h
parent066de857f813991cb8985c7b10e130b32c878bd6 (diff)
downloadexternal_llvm-429c75b8654b0d1069f1897375f5801a4c5de017.tar.gz
external_llvm-429c75b8654b0d1069f1897375f5801a4c5de017.tar.bz2
external_llvm-429c75b8654b0d1069f1897375f5801a4c5de017.zip
Avoid warnings about implicit conversions to `bool' in MSVC. This time
for real. Patch by Nathan Jeffords! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DebugInfo.h')
-rw-r--r--include/llvm/Analysis/DebugInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h
index d01178fe3f..d5733aeb75 100644
--- a/include/llvm/Analysis/DebugInfo.h
+++ b/include/llvm/Analysis/DebugInfo.h
@@ -160,8 +160,8 @@ namespace llvm {
/// module does not contain any main compile unit then the code generator
/// will emit multiple compile units in the output object file.
- bool isMain() const { return getUnsignedField(6); }
- bool isOptimized() const { return getUnsignedField(7); }
+ bool isMain() const { return getUnsignedField(6) != 0; }
+ bool isOptimized() const { return getUnsignedField(7) != 0; }
StringRef getFlags() const { return getStringField(8); }
unsigned getRunTimeVersion() const { return getUnsignedField(9); }