diff options
| author | Jimmy Kwa <[email protected]> | 2011-11-14 14:40:38 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:18:25 -0700 |
| commit | 510c6c894a99adc19d41c6bc1a578a31d5da6b2c (patch) | |
| tree | 9c5647dfbb96a8feab8f7982758ec096dd46d993 /decuda_to_ptxplus/decuda.y | |
| parent | 359427fe2ca23cd5fa0998a8bd37cc4db2897124 (diff) | |
fixed memory error in decuda_to_ptxplus that was causing the type modifier for constants to not appear in some cases.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10931]
Diffstat (limited to 'decuda_to_ptxplus/decuda.y')
| -rw-r--r-- | decuda_to_ptxplus/decuda.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decuda_to_ptxplus/decuda.y b/decuda_to_ptxplus/decuda.y index 9c8a5e7..0b297f8 100644 --- a/decuda_to_ptxplus/decuda.y +++ b/decuda_to_ptxplus/decuda.y @@ -313,10 +313,10 @@ constMemoryStatements : constMemoryStatement constMemoryStatement : POUND constMemoryTypes constMemoryList { g_instList->setConstMemoryType($2); } NEWLINE -constMemoryTypes : DDOTU32 { char tempString[5]; +constMemoryTypes : DDOTU32 { char* tempString = new char[5]; strcpy(tempString, ".u32"); $$ = tempString; } - | DDOTF32 { char tempString[5]; + | DDOTF32 { char* tempString = new char[5]; strcpy(tempString, ".f32"); $$ = tempString; } ; |
