How to trim wall to roofline
Turn on snapping to face. (In blender 2.79.6 the shortcut is shift+Tab).



In edit mode, grab your vertices on the corner of the wall sticking through the roof and press "G" and "Z" to move it along only the Z axis. When the vertices snap onto the the correct face, let it go and there you go!

Hope that helps!