[llvm-branch-commits] [llvm-gcc-branch] r79661 - /llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-debug.cpp
Bill Wendling
isanbard at gmail.com
Fri Aug 21 12:20:10 PDT 2009
Author: void
Date: Fri Aug 21 14:20:10 2009
New Revision: 79661
URL: http://llvm.org/viewvc/llvm-project?rev=79661&view=rev
Log:
$ svn merge -c 79054 https://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk
--- Merging r79054 into '.':
U gcc/llvm-debug.cpp
Modified:
llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-debug.cpp?rev=79661&r1=79660&r2=79661&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Bender-SWB/gcc/llvm-debug.cpp Fri Aug 21 14:20:10 2009
@@ -486,12 +486,13 @@
// FIXME - handle dynamic ranges
tree MinValue = TYPE_MIN_VALUE(Domain);
tree MaxValue = TYPE_MAX_VALUE(Domain);
- if (MinValue && MaxValue &&
- isInt64(MinValue, 0) && isInt64(MaxValue, 0)) {
- uint64_t Low = getINTEGER_CSTVal(MinValue);
- uint64_t Hi = getINTEGER_CSTVal(MaxValue);
- Subscripts.push_back(DebugFactory.GetOrCreateSubrange(Low, Hi));
- }
+ uint64_t Low = 0;
+ uint64_t Hi = 0;
+ if (MinValue && isInt64(MinValue, 0))
+ Low = getINTEGER_CSTVal(MinValue);
+ if (MaxValue && isInt64(MaxValue, 0))
+ Hi = getINTEGER_CSTVal(MaxValue);
+ Subscripts.push_back(DebugFactory.GetOrCreateSubrange(Low, Hi));
}
EltTy = TREE_TYPE(atype);
}
More information about the llvm-branch-commits
mailing list