Commit b2794155 authored by Tanya Lattner's avatar Tanya Lattner
Browse files

Merge from mainline

Fix a bug that prevented llvm-extract -delete from working.

llvm-svn: 57953
parent 2bf32ce9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ namespace {
    bool deleteGV() {
      for (std::vector<GlobalValue*>::iterator GI = Named.begin(), 
             GE = Named.end(); GI != GE; ++GI) {
        if (Function* NamedFunc = dyn_cast<Function>(&*GI)) {
        if (Function* NamedFunc = dyn_cast<Function>(*GI)) {
         // If we're in relinking mode, set linkage of all internal callees to
         // external. This will allow us extract function, and then - link
         // everything together