diff options
author | Ying Chen <chying@google.com> | 2016-01-08 23:10:56 +0000 |
---|---|---|
committer | Ying Chen <chying@google.com> | 2016-01-08 23:10:56 +0000 |
commit | d7a2ecb6811f0ff3245cef63930a1fb57b6e5b58 (patch) | |
tree | 4a7d1217a83d432c4e396958edd576fbe190afec /lldb/packages/Python/lldbsuite | |
parent | f79782fa131700d76f3fbe28608b1bd28733533c (diff) | |
download | bcm5719-llvm-d7a2ecb6811f0ff3245cef63930a1fb57b6e5b58.tar.gz bcm5719-llvm-d7a2ecb6811f0ff3245cef63930a1fb57b6e5b58.zip |
Fix TestDebugBreak.py failure with gcc, for loop declarations are not allowed by default with gcc
- fix buildbot breakage after r257186
- move declaration outside of for loop
llvm-svn: 257228
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c index 5439ef41d06..5f936327e4e 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/main.c @@ -8,8 +8,8 @@ int bar(int const *foo) { - int count = 0; - for (int i = 0; i < 10; ++i) + int count = 0, i = 0; + for (; i < 10; ++i) { count += 1; BREAKPOINT_INTRINSIC(); |