From 23e3da8600b07da2a653f62b1b581002a6cc430a Mon Sep 17 00:00:00 2001 From: bdr7fv <bdr7fv@git.zephyr-software.com> Date: Tue, 19 Jun 2012 13:28:37 +0000 Subject: [PATCH] Adding padding between dynamic arrays was broken. I forgot to add 0x before the hex value. The assembly was always failing. I am uncertain what actually happened when it failed. Former-commit-id: a35c72e2a04edd5fbc68fd2fbcf9fe115b50b44f --- tools/transforms/PNTransformDriver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/transforms/PNTransformDriver.cpp b/tools/transforms/PNTransformDriver.cpp index 16d72958d..b3ab2db53 100644 --- a/tools/transforms/PNTransformDriver.cpp +++ b/tools/transforms/PNTransformDriver.cpp @@ -1060,7 +1060,7 @@ inline bool PNTransformDriver::Instruction_Rewrite(PNStackLayout *layout, Instru //divisible by the alignment stride, however, without knowing //the size of the object, this may not ensure alignment, it is //up to the compiler to handle that else where. - ss<<"add "<<matched<<" , "<<hex<<layout->GetRandomPadding();//"0x500"; + ss<<"add "<<matched<<" , 0x"<<hex<<layout->GetRandomPadding();//"0x500"; cerr<<"PNTransformDriver: adding padding to dynamic stack allocation"<<endl; cerr<<"PNTransformDriver: inserted instruction = "<<ss.str()<<endl; -- GitLab