diff options
| author | Logan Chien <tzuhsiang.chien@gmail.com> | 2015-06-25 00:05:24 +0000 |
|---|---|---|
| committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2015-06-25 00:05:24 +0000 |
| commit | aa938fa6b645d98bd1b2367bdd4babd3d491b8c2 (patch) | |
| tree | 5eab53d6725a54004a1ec09187060b953cef36ee /libunwind/src | |
| parent | ac08e53f3a596a3120694c6920d3c458e46000d8 (diff) | |
| download | bcm5719-llvm-aa938fa6b645d98bd1b2367bdd4babd3d491b8c2.tar.gz bcm5719-llvm-aa938fa6b645d98bd1b2367bdd4babd3d491b8c2.zip | |
Avoid C99 for-declaration statement in C files. (NFC)
To compile libunwind with gcc/g++ 4.9, it is required to avoid the
for-declaration statement from C99.
llvm-svn: 240609
Diffstat (limited to 'libunwind/src')
| -rw-r--r-- | libunwind/src/UnwindLevel1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwind/src/UnwindLevel1.c b/libunwind/src/UnwindLevel1.c index 84627c253b0..61abd890d9e 100644 --- a/libunwind/src/UnwindLevel1.c +++ b/libunwind/src/UnwindLevel1.c @@ -31,8 +31,8 @@ unwind_phase1(unw_context_t *uc, _Unwind_Exception *exception_object) { unw_init_local(&cursor1, uc); // Walk each frame looking for a place to stop. - for (bool handlerNotFound = true; handlerNotFound;) { - + bool handlerNotFound = true; + while (handlerNotFound) { // Ask libuwind to get next frame (skip over first which is // _Unwind_RaiseException). int stepResult = unw_step(&cursor1); |

