From 1a05851a27f42ef2718d04119c616a7fecdffb32 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Fri, 27 Jan 2006 15:46:54 +0000 Subject: [PATCH] Forgot the version number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25685 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/MachineDebugInfo.cpp b/lib/CodeGen/MachineDebugInfo.cpp index 9c6c35ecdcd..07faba1dfbf 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(IC->getOperand(Version_op))->getValue(); + return cast(IC->getOperand(Version_op))->getValue() == 0; } /// getLanguage - Return the compile unit's language number (ex. DW_LANG_C89.) -- 2.34.1