aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-01-27 15:46:54 +0000
committerJim Laskey <jlaskey@mac.com>2006-01-27 15:46:54 +0000
commit1a05851a27f42ef2718d04119c616a7fecdffb32 (patch)
tree52e92d4eb6c275dcebf717df262e7685ee7d75e9
parentd8f77bae03b4ff701ed24ce74d1bf079f2dd197f (diff)
Forgot the version number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25685 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/MachineDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp
index 9c6c35ecdc..07faba1dfb 100644
--- a/lib/CodeGen/MachineDebugInfo.cpp
+++ b/lib/CodeGen/MachineDebugInfo.cpp
@@ -139,7 +139,7 @@ unsigned CompileUnitWrapper::getTag() const {
/// Currently the value is 0 (zero.) If the value is is not correct then
/// ignore all debug information.
bool CompileUnitWrapper::isCorrectDebugVersion() const {
- return cast<ConstantUInt>(IC->getOperand(Version_op))->getValue();
+ return cast<ConstantUInt>(IC->getOperand(Version_op))->getValue() == 0;
}
/// getLanguage - Return the compile unit's language number (ex. DW_LANG_C89.)