[llvm-branch-commits] [debuginfo-tests] d77a572 - [DebugInfo][dexter] Tweak dexter test for merged values

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 19 05:11:26 PST 2021


Author: OCHyams
Date: 2021-01-19T12:45:31Z
New Revision: d77a57208770470d546194ad81bd01ae5d94df0d

URL: https://github.com/llvm/llvm-project/commit/d77a57208770470d546194ad81bd01ae5d94df0d
DIFF: https://github.com/llvm/llvm-project/commit/d77a57208770470d546194ad81bd01ae5d94df0d.diff

LOG: [DebugInfo][dexter] Tweak dexter test for merged values

Tweak dexter-tests/memvars/inline-escaping-function.c added in D94761
(b7e516202eb6) by adding a 'param' use after the merge point. The test XFAILS
with and without this change, but without it the test looks very similar to
memvars/unused-merged-value.c. The test now demonstrates the problem more
clearly.

Added: 
    

Modified: 
    debuginfo-tests/dexter-tests/memvars/inline-escaping-function.c

Removed: 
    


################################################################################
diff  --git a/debuginfo-tests/dexter-tests/memvars/inline-escaping-function.c b/debuginfo-tests/dexter-tests/memvars/inline-escaping-function.c
index f2a22e69015a..16b4d1dda56f 100644
--- a/debuginfo-tests/dexter-tests/memvars/inline-escaping-function.c
+++ b/debuginfo-tests/dexter-tests/memvars/inline-escaping-function.c
@@ -35,7 +35,7 @@ int fun(int param) {
   if (param)
     param = inlineme(&param);
   fluff();           // DexLabel('s0')
-  return 0;
+  return param;
 }
 
 int main() {


        


More information about the llvm-branch-commits mailing list