[cfe-commits] r92253 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Chris Lattner sabre at nondot.org
Mon Dec 28 23:49:13 PST 2009


Author: lattner
Date: Tue Dec 29 01:49:13 2009
New Revision: 92253

URL: http://llvm.org/viewvc/llvm-project?rev=92253&view=rev
Log:
strength reduce this call away.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=92253&r1=92252&r2=92253&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Tue Dec 29 01:49:13 2009
@@ -1090,7 +1090,8 @@
       CI->replaceAllUsesWith(NewCall);
 
     // Copy any custom metadata attached with CI.
-    CI->getContext().getMetadata().copyMD(CI, NewCall);
+    if (llvm::MDNode *DbgNode = CI->getMetadata("dbg"))
+      NewCall->setMetadata("dbg", DbgNode);
     CI->eraseFromParent();
   }
 }





More information about the cfe-commits mailing list