Forgot the version number.

llvm-svn: 25685
This commit is contained in:
Jim Laskey 2006-01-27 15:46:54 +00:00
parent f98fc8441c
commit 2b6efa9d41
1 changed files with 1 additions and 1 deletions

View File

@ -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.)